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.

2.2.0 Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libjsc.so" not found

See original GitHub issue

Description

I bumped reanimated 2.1.0 -> 2.2.0 and suffered error like the follwoing in production build(launch time crash) image

Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libjsc.so" not found
       at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
       at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
       at java.lang.System.loadLibrary(System.java:1667)
       at com.swmansion.reanimated.NativeProxy.<clinit>(NativeProxy.java:22)
       at com.swmansion.reanimated.NodesManager.initWithContext(NodesManager.java:127)
       at com.swmansion.reanimated.ReanimatedJSIModulePackage.getJSIModules(ReanimatedJSIModulePackage.java:18)
       at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1265)
       at com.facebook.react.ReactInstanceManager.access$1100(ReactInstanceManager.java:131)
       at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1023)
       at java.lang.Thread.run(Thread.java:919)

I can’t sure it is related to reanimated but stack trace indicates it.

Package versions

  • React Native: 0.64.2
  • React Native Reanimated: 2.2.0
  • NodeJS:
  • Xcode:
  • Java & Gradle:
System:
    OS: macOS 11.2.3
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 988.16 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.7.0 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.7 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /Users/mj/.rvm/gems/ruby-2.7.0/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK:
      API Levels: 27, 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2
      System Images: android-26 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: 23.0.7344513-beta4
  IDEs:
    Android Studio: 4.2 AI-202.7660.26.42.7351085
    Xcode: 12.5/12E262 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_192 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.64.2 => 0.64.2 
  npmGlobalPackages:
    *react-native*: Not Found

Affected platforms

  • Android
  • iOS
  • Web

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
mym0404commented, Jul 2, 2021

what? in my gradle, typo in enableHernes not enableHermes ??? since 2020.12

what a dumb;;;

All mystery is solved thank you

1reaction
piaskowykcommented, Jul 2, 2021

Hey @mym0404 You right this is a stack trace from Reanimated, but the source of the problem doesn’t relate to Reanimated. Reanimated require to work libjsc.so if you want to use JSC runtime or libhermes.so if you use Hermes runtime and these .so files should be provided by React Native to .apk. So if you don’t have these libs it probably means you have a configuration issue. You should check Gradle property enableHermes: https://github.com/facebook/react-native/blob/master/template/android/app/build.gradle#L81 Reanimated check this property to choose the right runtime: https://github.com/software-mansion/react-native-reanimated/blob/master/android-npm/build.gradle#L12 the default runtime is JSC.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting library "libjsc.so" not found after upgrading React ...
After doing this, I get the error library "libjsc.so" not found when running react-native run-android . i get the same error when running...
Read more >
RN升级篇(一):libjscexecutor.so caused by :dlopen failed ...
固在Android原生进入RN项目时报如下错误:. couldn't find DSO to load: libjscexecutor.so caused by :dlopen failed:library“libjsc.so“ not found.
Read more >
tflite failed to load with error: error getting native address of ...
Trying to load a tflite model fails with java.io. ... E/SoLoader: Error when loading lib: dlopen failed: library "libjsc.so" not found lib hash: ......
Read more >
react-native-v8 - Bountysource
Hello I followed your instruction but i keep getting error Exception in ... D/SoLoader: Not resolving dependencies for libv8executor.so java.lang.
Read more >
Analysis Report TCL Smart_v1.0.2_apkpure.com.apk
•Language, Device and Operating System Detection ... An application runtime error occurred ... have missing behavior information.
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