_lyu
July 24, 2023, 9:50am
1
I am following
tag v0.9
npm run android:newlogic
run application successfully without changing code in Android device, but crash immediately
块引用
2023-07-24 15:49:48.484 30421-30555/? E/SoLoader: couldn’t find DSO to load: libhermes.so
SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/io.mosip.residentapp/lib-main flags = 1]
SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~5ub7wVO-KfFaMw85VtDpwg==/io.mosip.residentapp-STiTGDANKOabKnIrncUhXg==/lib/arm64 flags = 0]
SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
Native lib dir: /data/app/~~5ub7wVO-KfFaMw85VtDpwg==/io.mosip.residentapp-STiTGDANKOabKnIrncUhXg==/lib/arm64
result: 0
2023-07-24 15:49:48.485 30421-30555/? E/AndroidRuntime: FATAL EXCEPTION: create_react_context
Process: io.mosip.residentapp, PID: 30421
java.lang.UnsatisfiedLinkError: couldn’t find DSO to load: libhermes.so
SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/io.mosip.residentapp/lib-main flags = 1]
SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~5ub7wVO-KfFaMw85VtDpwg==/io.mosip.residentapp-STiTGDANKOabKnIrncUhXg==/lib/arm64 flags = 0]
SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
Native lib dir: /data/app/~~5ub7wVO-KfFaMw85VtDpwg==/io.mosip.residentapp-STiTGDANKOabKnIrncUhXg==/lib/arm64
result: 0
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:918)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:740)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:654)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:634)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:582)
at com.facebook.hermes.reactexecutor.HermesExecutor.(HermesExecutor.java:20)
at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:29)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1024)
at java.lang.Thread.run(Thread.java:1012)
I searched for a lot of solutions on google, tried it, but couldn’t solve it
Hi @_lyu
Thank you for raising your concern !
Our team will check the logs shared by you and help you out with a resolution on
" crash issue with the Android inji application"
We will get back to you asap.
Best Regards,
Team MOSIP
_lyu
July 27, 2023, 1:39am
3
Hi @sanchi-singh24 Any progress on the error crash?
1 Like
Hi @_lyu
Apologies for the delayed response !
One of our Inji team member will try to give resolution asap and support you with all your queries for Inji application.
Best Reagrds,
Team MOSIP
Hello @_lyu ,
I am the developer who is looking into this issue. To assist you better, I would like to know the node version, your operating system, and its version.
Thank you.
1 Like
_lyu
July 27, 2023, 1:21pm
6
Hi @Pooja_Babusingh
nodeVersion:V16.15.1
operating system:Android 13
Build environment:Win11
Thank you.
1 Like
Hello @_lyu
Can you also please mention your java and gradle versions?
Thank you
_lyu
July 28, 2023, 6:18am
8
Hello @Pooja_Babusingh
Java Version:java11
Gradle tools: 4.2.2
Gradle version: gradle-6.9-all.zip
Thank you
_lyu
August 2, 2023, 2:58am
9
Hi @Pooja_Babusingh Any progress on the error crash?
Hello @_lyu ,
We have tried our best to reproduce the issue with the same setup (node, Java, Gradle, and Windows versions) but couldn’t replicate it. Please follow these steps:
Clone the repository again to ensure you have the latest code, Rebuild the project from scratch. or
Clean and delete the “node_modules” directory.
If you still face the same issue, I have attached a few reference links for you to follow.
opened 04:29AM - 30 Jul 20 UTC
closed 03:11AM - 27 Nov 20 UTC
Resolution: Locked
Tech: Hermes
Newer Patch Available
Needs: Attention
## Description
I'm getting error reports for **couldn't find DSO to load: lib… hermes.so**
I have hermes **disabled** but still seems to be tripping up my build.
com.facebook.soloader.SoLoader.doLoadLibraryBySoName (SoLoader.java:738)
com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:591)
com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:529)
com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:484)
com.facebook.hermes.reactexecutor.HermesExecutor.<clinit> (HermesExecutor.java:20)
com.facebook.hermes.reactexecutor.HermesExecutorFactory.create (HermesExecutorFactory.java:27)
com.facebook.react.ReactInstanceManager$5.run (ReactInstanceManager.java:952)
java.lang.Thread.run (Thread.java:818)
## React Native version:
System:
OS: macOS 10.15.6
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Memory: 207.63 MB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 13.6.0 - /usr/local/bin/node
npm: 6.13.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-18 | Google APIs Intel x86 Atom, android-19 | Google APIs Intel x86 Atom, android-21 | Google APIs Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6392135
Xcode: 11.6/11E708 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
## Steps To Reproduce
Been unable to reproduce but have the error on a range of device and android os versions from 6 to 10.
## Expected Results
## Snack, code example, screenshot, or link to a repository:
Seen other report this issue when are trying to use Hermes and tried to make their fixes but was not resolved it for when i am not using hermes
android/app/build.gradle
```
project.ext.react = [
entryFile: "index.js",
enableHermes: false, // clean and rebuild if changing
]
def jscFlavor = 'org.webkit:android-jsc:+'
def enableHermes = project.ext.react.get("enableHermes", false);
dependencies {
if (enableHermes) {
def hermesPath = "../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
implementation jscFlavor
}
```
android/build.gradle
```
allprojects {
repositories {
google()
jcenter()
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")
}
maven { url 'https://jitpack.io' }
}
}
```
Any help on this would be greatly appreciated.
opened 03:01PM - 20 Mar 23 UTC
closed 10:24AM - 09 May 23 UTC
- i created a project for reproducing this crash of *java.lang.UnsatisfiedLinkEr… ror: couldn't find DSO to load: libhermes.so*
- hope it help here to debug this crash.
**Step reproduce:
- Init project: npx react-native init Test0714
- android/gradle.properties -> newArchEnabled true
- add @react-native-firebase/app
- register firebase console -> add google-services.json (packageName: "com.test0714") to dir: /android/app
- rnfirebase docs: => cd android && ./gradlew signingReport
- add "classpath 'com.google.gms:google-services:4.3.15'" into dir: /android/build.gradle
- Lastly, execute the plugin by adding the following to your /android/app/build.gradle file:
->apply plugin: 'com.google.gms.google-services' // <- Add this line
- In File: /android/app/build.gradle
=> add these lines: "multiDexEnabled true" and "implementation 'androidx.multidex:multidex:2.0.1'"
- yarn add @react-native-firebase/messaging
- yarn add @react-native-firebase/crashlytics
- android/build.gradle add line: "classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.4'"
- android/app/build.gradle add line: "apply plugin: 'com.google.firebase.crashlytics'"
// run-android here working fine.
\/ \/ \/ \/ \/ \/ \/ \/
// Crash after do these things with react-native-code-push
// adb logcat ==> java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
- yarn add react-native-code-push
- android/setting.gradle:
include ':app', ':react-native-code-push'
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')
- android/app/build.gradle
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
- update MainApplication.java
// 1. Import the plugin class.
import com.microsoft.codepush.react.CodePush;
//
@Override
protected String getJSBundleFile() {
return CodePush.getJSBundleFile();
}
- Run build: npx react-native run-android**
https://github.com/NguyenHoangMinhkkkk/reproduce-0714-crash
_Originally posted by @NguyenHoangMinhkkkk in https://github.com/facebook/react-native/issues/35895#issuecomment-1475881250_
Thank you for your cooperation.
Best regards,
Team MOSIP
_lyu
August 2, 2023, 9:16am
11
Hello @Pooja_Babusingh Is it possibile to provide an android universal apk for me to test(GitHub - mosip/inji Tag v0.9)
Hello @_lyu ,
If you can provide me with the environment, i.e., MIMOTO_HOST, you are working on, I can generate an APK and share it with you.
Thank you!
_lyu
August 3, 2023, 9:53am
13
Hi, @Pooja_Babusingh
Sorry, What is MIMOTO_HOST, I just only generate google-services.json file from google, and replace it in my project.
Thank you!
Hello @_lyu ,
I am attaching the link to download the universal APK. To download the VC, you can use the following credentials:
UIN: 5649269043
OTP: 111111
Link: MOSIP_universal.apk - Google Drive
Thank you.
1 Like
_lyu
August 14, 2023, 2:39am
15
Hello @Pooja_Babusingh ,
The apk works fine, thank you very much. I still can’t build the program successfully, the same error as before, anyway, thank you again, I still have a question, what does “VC” stand for?
Thank you
Hi @_lyu
It’s great to here the APK version you are able to use without any issues and regarding the pervious build error I will ask @Pooja_Babusingh to look into it.
The VC stands for verifiable credentials of a user. If you want to know more on the VC do let us know we will guide on that.
Best Regards,
Team MOSIP.