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.

RN Android "0.63.4 App Crash

See original GitHub issue

After config all in the docs, and config the gradle.

 ext {
        buildToolsVersion = '29.0.2'
        minSdkVersion = 26
        compileSdkVersion = 29
        targetSdkVersion = 29
    }

Im having app crash with no errors in my terminal

Then Im starting to check in adb logs , I think the screenshot is saying there’s an error in the package.

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
molimatcommented, Jun 1, 2021

We did fix this updating the okhttp packages in our gradlew, for some reason Intercom and some other libraries were trying to make requests using different okhttp versions, causing crash. Not sure if everyone is having the same issue, but my fix was adding these lines:

dependencies { // define a BOM and its version implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.0")) // define any required OkHttp artifacts without version implementation("com.squareup.okhttp3:okhttp") implementation("com.squareup.okhttp3:logging-interceptor") }

2reactions
daniel-moyacommented, Aug 20, 2021

Thanks to @molimat , this solution works!

Also you can check the OkHttp docs where you can find the examples @molimat mentioned

https://square.github.io/okhttp/#releases

    dependencies {
       // Intercom requires okhttp packages to be version compatible
       // For latest release please check: https://square.github.io/okhttp/#releases
       // define a BOM and its version
       implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.0"))

       // define any required OkHttp artifacts without version
       implementation("com.squareup.okhttp3:okhttp")
       implementation("com.squareup.okhttp3:logging-interceptor")
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Android app 0.63.3 crashing in release after ...
Run with --scan to get full insights. It appears that AppCenter has recently depreciated a bunch of supported decencies. But I am having...
Read more >
Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
App Crashes on Oppo devices : r/reactnative - Reddit
It's been now 15-20 days, We are facing lots of app crashes with Oppo ... with certain android API levels depending on the...
Read more >
App Center - Android release crash on startup-React Native
... before the bundle is copied // This forces the copy task to run before merge resources // This should be fixed and...
Read more >
React Native Android release build crash on device - Medium
And more surprisingly your app working fine in debug mode but crashing in release mode on device. For me when I found my...
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