-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproducer for: "couldn't find DSO to load: libhermes.so caused by" #36539
Comments
Can someone try the reproducer provided by @NguyenHoangMinhkkkk and verify that it consistently happening? |
And one more thing. |
I can able to reproduce this issue 'couldn't find DSO to load' in the latest react-native 0.71.6 with hermesEnabled true, Can someone help, please? |
This is happening because of this line ( Fix:
You can confirm the And also double check code-push is working for you. |
Thanks for verifying this @rada You're right that line is unnecessary. |
Thanks 🚀 |
Worked perfectly |
Thank you @rada |
@rada Hi guys, |
**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
// 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 #35895 (comment)
The text was updated successfully, but these errors were encountered: