question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android app is crashing on production after installing sentry

See original GitHub issue

OS:

  • 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. Screenshot_2020-02-24-09-40-48-763_com miui bugreport

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
marandanetocommented, Feb 26, 2020

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. and npx 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.

1reaction
httpigacommented, Apr 14, 2020

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/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found