sentry-react-native: Unable to build app via gradle after installing sentry

Platform:

  • Android

I have successfully installed the sentry client on my android app for local development, however on building the app and initialising proguard, my app build fails and i get the following error. Are there any rules that i have to enable to allow the build.

Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
:app:transformClassesAndResourcesWithProguardForReleaseGiant FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForReleaseGiant'.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 26 (9 by maintainers)

Most upvoted comments

I was able to make build successfully after adding following code in proguard setting

-keepattributes LineNumberTable,SourceFile -dontwarn org.slf4j.** -dontwarn javax.**

It’s also in our doc, I probably forgot to mention it specifically. https://docs.sentry.io/clients/java/modules/android/#manual-integration

wait no, I had switched enableProguardInReleaseBuilds back to false, sorry my mistake… no more luck then, it fails 😕