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 launch 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.planet.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.planet.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.planet.debug-kl4UVs7kB1DjwIuGzZwG2w==/base.apk", zip file "/data/app/com.planet.planet

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:9
  • Comments:22

github_iconTop GitHub Comments

6reactions
Benzer1406commented, Jul 24, 2020

Correct, issue still here.

4reactions
raajnadarcommented, Jan 15, 2020

Try this method (For android)

cd into android folder

run gradlew clean or ./gradlew clean according to your OS

Now run react-native run-android it worked for me in android.

Try this method (For ios)

For iOS try deleting pods folder and pod install

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Android] Crash launch after upgrading RN 0.60 #777 - GitHub
Hello, After upgrading react native to get it work when build 64Bits (for the last GooglePlay requirement)
Read more >
React-native 0.60.x app crash immediatelly - Stack Overflow
Now run react-native run-android it worked for me in android. Try this method (For ios). For iOS try deleting pods folder and pod...
Read more >
Developers - [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 >
Get Started with React Native - Visual Studio App Center
Select the appropriate OS (Android or iOS) and select React Native as ... crashes are always processed after the restart of the application....
Read more >
React Native - Sentry Documentation
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 >

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