Android app is crashing on production after installing sentry
See original GitHub issueOS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native
-
react-native-sentry
SDK version: 1.3.2
react-native
version: 0.61.5
Init Code:
Sentry.init({
dsn: 'https://...@sentry.io/...'
});
I have following issue:
Android is crashing on production, while it works fine on the debug. I am getting the following issue.
Description goes here …
Running the app on production is causing the following issue.
Steps to reproduce:
- Step Install sentry app, build production with ./gradlew buildRelease Running the production app and its crashing.
Actual result: The app is crashing as soon as its opened.
Expected result: It should run normally after installing the app.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Android Error and Performance Monitoring - Sentry
See Android app crash reports with details like filename and line number so you ... Monitor errors at scale without impacting throughput in...
Read more >React Native Expo Android crashes only in production and is ...
React Native Expo Android crashes only in production and is also not catchable in Sentry - Stack Overflow. Stack Overflow for Teams –...
Read more >App Logging | My Site - GitHub Pages
To enable remote logging, we have built an application logging and crash reporting functionality using opensource tools and libraries, which can be easily ......
Read more >Android - Sentry Documentation
When the application is about to crash, an error report is created and saved to disk. The SDK will try to send the...
Read more >Firebase Crashlytics | A powerful Android and iOS crash ...
Firebase Crashlytics, an Android and iOS real time crash reporting tool, ... Crashlytics also easily integrates into your macOS, tvOS, watchOS, Unity apps....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
hey, @xwartz your issue seems to be different, to be honest. It’s like it didn’t do the packaging correctly.
Could you try:
cd android; ./gradlew clean cleanBuildCache
just to clean the gradle caching. andnpx react-native run-android
to run via react-native CLI.Also, have you followed the same steps here? https://docs.sentry.io/platforms/react-native/ What’s your RN and sentry-react-native versions? thanks.
I had the same issue and
cd android; ./gradlew clean cleanBuildCache
resolved it but I suggest to add this line to the docs https://docs.sentry.io/platforms/react-native/