React-native: java.lang.UnsatisfiedLinkError: at com.facebook.soloader.SoLoader.doLoadLibraryBySoName (SoLoader.java:738)

Created on 23 Jul 2019  路  18Comments  路  Source: facebook/react-native

App crashes after android app bundle.

React Native version:
React Native Environment Info:
System:
OS: macOS 10.14.4
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 36.11 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.6.0 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
SDKs:
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 23.0.1, 26.0.2, 28.0.3
System Images: android-19 | Intel x86 Atom, android-19 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: /undefined - /usr/bin/xcodebuild
npmPackages:
react: 16.8.5 => 16.8.5
react-native: 0.59.5 => 0.59.5
npmGlobalPackages:
generator-react-native-ignite: 1.13.0
react-native-cli: 2.0.1
react-native-ignite: 1.13.0

Steps To Reproduce

  1. Not able to reproduce, app crashes are increasing

Describe what you expected to happen: No crash

Screenshot 2019-07-23 at 6 13 54 PM

Bug Ran Commands

Most helpful comment

@react-native-bot

giphy

All 18 comments

It looks like you are using an older version of React Native. Please update to the latest release, v0.60 and verify if the issue still exists.

The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

Still happening with 0.60.5

@react-native-bot

giphy

Hi @john1jan we're experiencing this kind of issue too. Did you find any solution?

Hi @john1jan we're experiencing this kind of issue too. Did you find any solution?

I am also ran into the same issue.

Hi, I have the same problem. Did you find a solution?

Has anyone found a solution to this problem yet?

@react-native-bot the issue is still not resolved we are getting the same crash more and more

02-01 19:00:28.632  4467  4506 E AndroidRuntime: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreactnativejni.so
02-01 19:00:28.632  4467  4506 E AndroidRuntime:        at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:738)
02-01 19:00:28.632  4467  4506 E AndroidRuntime:        at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:591)
02-01 19:00:28.632  4467  4506 E AndroidRuntime:        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:529)
02-01 19:00:28.632  4467  4506 E AndroidRuntime:        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:484)
02-01 19:00:28.632  4467  4506 E AndroidRuntime:        at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:31)
02-01 19:00:28.632  4467  4506 E AndroidRuntime:        at com.facebook.react.bridge.Inspector.<clinit>(Inspector.java:19)
02-01 19:00:28.632  4467  4506 E AndroidRuntime:        at com.facebook.react.bridge.Inspector.getPages(Inspector.java:26)
02-01 19:00:28.632  4467  4506 E AndroidRuntime:        at com.facebook.react.devsupport.InspectorPackagerConnection.getPages(InspectorPackagerConnection.java:147)
02-01 19:00:28.632  4467  4506 E AndroidRuntime:        at com.facebook.react.devsupport.InspectorPackagerConnection.handleProxyMessage(InspectorPackagerConnection.java:64)

APP CRASHES ON LAUNCH, This is what i found in catlog

Issue persist?

unfortunately yes :(

Issue persists still for today

yes

I upgraded my react native from 59.10 to 62.0, so I got the same issue the following answer is copied from StackOverflow that helped me.

I solved this problem by this steps

install hermesvm : npm i hermesvm
install jsc-android : npm i jsc-android
3.add this lines to app/build.gradle

project.ext.react = [
entryFile: "index.js" ,
enableHermes: false
]

def jscFlavor = 'org.webkit:android-jsc:+'
def enableHermes = project.ext.react.get("enableHermes", false);

dependencies {
if (enableHermes) {
def hermesPath = "../../node_modules/hermesvm/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
}
else { implementation jscFlavor }
add this jsc-android block to your android/build.gradle:

allprojects {
repositories {
maven {
url("$rootDir/../node_modules/react-native/android")
}
maven {
url "$rootDir/../node_modules/jsc-android/dist"
}
google()
jcenter()
}

}

cd android && gradlew clean has also helped my developers

If you are upgrading your react-native then, it's possible that upgrade my
not be successful every time so check following link to review changes
https://react-native-community.github.io/upgrade-helper/?from=0.59.10&to=0.62.0

https://react-native-community.github.io/upgrade-helper/?from=version_from&to=version_to

Hope it helps

So you meant to say, after enabling hermes engine this crash got solved ?

So you meant to say, after enabling hermes engine this crash got solved ?

For me not.

Just as an fyi, the following issue in React Native has many more solutions for the same problem: https://github.com/facebook/react-native/issues/23764

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anchetaWern picture anchetaWern  路  3Comments

DreySkee picture DreySkee  路  3Comments

aniss picture aniss  路  3Comments

janmonschke picture janmonschke  路  3Comments

axelg12 picture axelg12  路  3Comments