Android crash on startup with build from master
See original GitHub issueDescription
Following the guidelines for building from master a fresh react-native app fails to build.
Note this might just be my setup that is borken and this works for everyone else
Steps To Reproduce
npx @react-native-community/cli init Fresh
cd Fresh
- go to https://github.com/software-mansion/react-native-reanimated/actions?query=workflow%3A"Build+npm+package"
- select latest build and download react-native-reanimated-2.0.0-alpha.tgz artifact
- run
tar zxvf react-native-reanimated-2.0.0-alpha.tgz.zip
to unpack zip (or unpack it manually) - run
yarn add file:react-native-reanimated-2.0.0-*.tgz
to install the package - Follow the android steps for enabling reanimated
yarn android
- See error in logcat
Expected behavior
🎊 we can consume the library from master and build our own in forks.
Actual behavior
Crashes with
2020-09-09 16:25:02.508 12427-12427/com.fresh E/SoLoader: couldn't find DSO to load: libjscexecutor.so caused by: dlopen failed: library "libjsc.so" not found: needed by /data/app/~~FYqq0YYE23kAAskuoVCuIA==/com.fresh-m-lO_Kd-Hl2axAk30cBdjQ==/lib/x86/libjscexecutor.so in namespace classloader-namespace result: 0
2020-09-09 16:25:03.947 12427-12469/com.fresh E/ReactNativeJNI: logMarker CREATE_REACT_CONTEXT_END
2020-09-09 16:25:03.950 12427-12468/com.fresh E/unknown:ReactNative: ReactInstanceManager.createReactContext: mJSIModulePackage not null
2020-09-09 16:25:04.073 12427-12468/com.fresh E/AndroidRuntime: FATAL EXCEPTION: create_react_context
Process: com.fresh, PID: 12427
java.lang.UnsatisfiedLinkError: dlopen failed: library "libreanimated.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
at java.lang.System.loadLibrary(System.java:1664)
at com.swmansion.reanimated.NativeProxy.<clinit>(NativeProxy.java:26)
at com.swmansion.reanimated.NodesManager.initWithContext(NodesManager.java:122)
at com.swmansion.reanimated.ReanimatedJSIModulePackage.getJSIModules(ReanimatedJSIModulePackage.java:18)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1256)
at com.facebook.react.ReactInstanceManager.access$1100(ReactInstanceManager.java:131)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1016)
at java.lang.Thread.run(Thread.java:923)
Package versions
- React: 16.13.1
- React Native: 0.63.2
- React Native Reanimated: this master build -> https://github.com/software-mansion/react-native-reanimated/actions/runs/246241228 but I’m seeing this in a fork as well
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
My Android Build is Crashing on Start Up : r/unrealengine
Start by looking at the crash log. Use adb logcat UE4:S to log all UE4 events. If it doesn't output anything useful, it...
Read more >Dart/ flutter: application crashes on startup - Stack Overflow
The problem I faced was due to "firebase_crashlytics" not being installed correctly. Basically the entries in [project]/android/build.gradle and ...
Read more >What to Do If Apps Keep Crashing on an Android Device
You can often fix a crashing app by force-stopping the app and restarting it. If that doesn't fix the problem, check your WiFi...
Read more >Android crash on startup with build from master - Bountysource
Android crash on startup with build from master. ... the guidelines for building from master a fresh react-native app fails to build.
Read more >Why do my apps keep crashing on Android, How to fix it
How to fix apps that keep crashing on Android · 1. Force stop the app · 2. Restart the device · 3 ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This may be related to our configuration. We primarily are building Reanimated 2 on macOS which is case-insensitive by default and CI is a Linux machine. #1239 was submitted to fix this issue (new build should appear tomorrow).
@jakub-gonet with https://github.com/software-mansion/react-native-reanimated/pull/1239 merged this works as intended for me.
I didn’t have to run
./gradlew clean
in my case, but I wouldn’t be surprised if clearing the cache is needed in other cases, so I think you’re right to add this step to the installation docs 👍