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 on startup with build from master

See original GitHub issue

Description

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

  1. npx @react-native-community/cli init Fresh
  2. cd Fresh
  3. go to https://github.com/software-mansion/react-native-reanimated/actions?query=workflow%3A"Build+npm+package"
  4. select latest build and download react-native-reanimated-2.0.0-alpha.tgz artifact
  5. run tar zxvf react-native-reanimated-2.0.0-alpha.tgz.zip to unpack zip (or unpack it manually)
  6. run yarn add file:react-native-reanimated-2.0.0-*.tgz to install the package
  7. Follow the android steps for enabling reanimated
  8. yarn android
  9. 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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jakub-gonetcommented, Sep 17, 2020

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).

1reaction
Ragnar-Hcommented, Sep 25, 2020

@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 👍

Read more comments on GitHub >

github_iconTop 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 >

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