I'm trying to upgrade my ReactNative application to RN0.59.9. As usual, everything works fine on iOS (manage to build as 64bit) side but Android is not letting me go.
I'm able to build and generate a debug variant artifact, however my app crash after splash screen due to libjscexecutor.so.
What I've tried:
My environment(Things you probably want to know?):
Below is the logcat from Android Studio:
2019-06-10 17:09:29.754 23343-23665/com.bundle.id E/SoLoader: couldn't find DSO to load: libjscexecutor.so
2019-06-10 17:09:29.755 23343-23665/com.bundle.id E/AndroidRuntime: FATAL EXCEPTION: create_react_context
Process: com.bundle.id, PID: 23343
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:738)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:591)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:529)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:484)
at com.facebook.react.jscexecutor.JSCExecutor.<clinit>(JSCExecutor.java:19)
at com.facebook.react.jscexecutor.JSCExecutorFactory.create(JSCExecutorFactory.java:29)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:944)
at java.lang.Thread.run(Thread.java:764)
Run ./gradlew clean
then build again. Reference
Just upgrade the SOLoader.
In android/app/build.gradle
:
implementation 'com.facebook.soloader:soloader:0.9.0+'
More details and discussion here: https://github.com/facebook/react-native/issues/25537
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With