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] Crash when lunch after upgrading RN 0.60

See original GitHub issue

Hello, After upgrading react native to get it work when build 64Bits (for the last GooglePlay requirement) I follow the guideline for upgrade, now I’m crashing at start with the following logcat error Android application crash on start.

Logcat

7724-7788 E/CrashLogHandler: Stack trace: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/react/views/webview/ReactWebViewManager; at com.planet.planetpv.MainApplication$1.getPackages(MainApplication.java:53) at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:78) at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41) at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:91) at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:80) at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:52) at com.planet.planetpv.MainActivity.onCreate(MainActivity.java:32) at android.app.Activity.performCreate(Activity.java:7136) at android.app.Activity.performCreate(Activity.java:7127) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.react.views.webview.ReactWebViewManager" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.planet.planetpv.debug-kl4UVs7kB1DjwIuGzZwG2w==/base.apk", zip file "/data/app/com.planet.planetpv

Just in case, regarding org.apache.http.legacy, I added
<uses-library android:name="org.apache.http.legacy" android:required="false"/> in the AndroidManifest to get react-native-maps work with android 9 (it was working before the upgrade process).

Environment:

  • OS: Android
  • OS version: 9
  • react-native version: ^0.60.4
  • react-native-webview version: ^6.9.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

2reactions
ahmadalfycommented, Nov 12, 2019

This issue is still happening, I just upgraded a new project to the latest version of RN and I am facing that issue

0reactions
stale[bot]commented, Feb 17, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android crash when lunch after upgrading react-native 0.60
After upgrading react native to get it work when build 64Bits (for the last GooglePlay requirement) I follow the guideline for upgrade, ...
Read more >
[Android] Crash launch after upgrading RN 0.60
Hello, After upgrading react native to get it work when build 64Bits (for the last GooglePlay requirement) I follow the guideline for upgrade, ......
Read more >
react-native-image-picker
yarn add react-native-image-picker # RN >= 0.60 cd ios && pod install # RN ... Post-install Steps ... Launch camera to take photo...
Read more >
React Native
If you are running a project with react-native prior to 0.60, you still need to ... add the sentry-android package for native crash...
Read more >
React Native: How to Fix IOS App Crashes
Learn more about How to Fix Crashing IOS App on Launch using react ... We have started facing this error after upgrading to...
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