bugsnag / bugsnag-react-native

Error monitoring and reporting tool for native exceptions and JS errors in React Native apps
https://docs.bugsnag.com/platforms/react-native
MIT License
369 stars 121 forks source link

Intermittent build failure on :bugsnag-react-native:verifyReleaseResources Gradle task #452

Closed jhbertra closed 4 years ago

jhbertra commented 4 years ago

Description

Running an android build which depends on bugsnag-react-native

Issue

Encountering a sporadic build failure on the Gradle task :bugsnag-react-native:verifyReleaseResources

Error does not occur reliably, temporary workaround is to rerun build.

Environment

Library versions:

yarn list v1.22.0
warning Filtering by arguments is deprecated. Please use the pattern option instead.
├─ bugsnag-react-native@2.23.7
└─ react-native@0.61.5
✨  Done in 0.76s.
Error messages: ``` Execution failed for task ':bugsnag-react-native:verifyReleaseResources'. > 1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.4.2-5326820-linux Daemon #0: Unexpected error during compile '/home/circleci/project/node_modules/bugsnag-react-native/android/build/intermediates/res/merged/release/drawable/abc_spinner_textfield_background_material.xml', attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. ```
xljones commented 4 years ago

Hey @jhbertra, do you still get this same error if Bugsnag is not enabled? I am not sure if Aapt2 exception is related to Bugsnag. Are you able to produce a minimal example that can reproduce this error? Additionally, which compileSdkVersion are you using?

johnkiely1 commented 4 years ago

Hi @jhbertra, Were you able to determine that is caused by the presence of Bugsnag in the application? Closing for now but do let us know if you are still seeing this and we will be happy to reopen and investigate further.