couldn't find DSO to load: libjscexecutor.so caused by: dlopen failed: library "libjsc.so" not found

See original GitHub issue

App crash on Android integration with existing apps.

Crash log.

E/SoLoader: couldn't find DSO to load: libjscexecutor.so caused by: dlopen failed: library "libjsc.so" not found
2019-07-07 18:59:27.223 10045-10073/com.mihir.reactApp E/AndroidRuntime: FATAL EXCEPTION: create_react_context
    Process: com.mihir.reactApp, PID: 10045
    java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so caused by: dlopen failed: library "libjsc.so" not found
        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:949)
        at java.lang.Thread.run(Thread.java:764)

React Native version:

System: OS: macOS 10.14.5 CPU: (8) x64 Intel® Core™ i7-4770HQ CPU @ 2.20GHz Memory: 1.19 GB / 16.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 12.5.0 - /usr/local/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: Android SDK: API Levels: 21, 22, 23, 24, 25, 26, 27, 28, 29 Build Tools: 23.0.1, 25.0.2, 26.0.2, 27.0.3, 28.0.0, 28.0.3, 29.0.0, 29.0.0 System Images: android-22 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom IDEs: Android Studio: 3.4 AI-183.6156.11.34.5522156 Xcode: /undefined - /usr/bin/xcodebuild npmPackages: react: 16.8.6 => 16.8.6 react-native: ^0.60.0 => 0.60.0 npmGlobalPackages: react-native-cli: 2.0.1

Steps To Reproduce

  1. Create a new Android app which uses AndroidX.
  2. Add react-native to Android application as, implementation ‘com.facebook.react:react-native:+’
  3. Run app on any android device/emulator.

Sample project on GitHub which reproduces crash.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:109
  • Comments:141 (19 by maintainers)

github_iconTop GitHub Comments

102reactions
crispywongcommented, Jul 8, 2019

hi @mhrpatel12 ,

I’m having same issue. You can follow this link.

Add following code in build.gradle

def useIntlJsc = false

in dependency add in following

if (useIntlJsc) {
     implementation 'org.webkit:android-jsc-intl:+'
} else {
     implementation 'org.webkit:android-jsc:+'
}
69reactions
BrendonSledcommented, Jul 8, 2019

View the upgrade guide https://react-native-community.github.io/upgrade-helper/?from=0.59.10&to=0.60.0

You’re likely missing the step android/build.gradle

allprojects {
    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }
        google()
        jcenter()
    }
}
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 >
error failed to launch emulator react native
UnsatisfiedLinkError : couldn't find DSO to load: libjscexecutor.so caused by: dlopen failed: library "libjsc.so" not found at com.facebook.soloader.
Read more >
couldn't find DSO to load: libjscexecutor.so caused by
couldn't find DSO to load: libjscexecutor.so caused by: dlopen failed: library "libjsc.so" not found. July 11, 2019, 2:01 am.
Read more >
Can add this function ''__cxa_bad_typeid" inside library ...
SoLoader: couldn't find DSO to load: libjsc.so caused by: dlopen failed: cannot locate symbol “__cxa_bad_typeid” referenced by ...
Read more >
RN升级篇(一):libjscexecutor.so caused by :dlopen failed ...
couldn't find DSO to load: libjscexecutor.so caused by :dlopen failed:library"libjsc.so" not found ;. 解决方案:.
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