You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'"
/ / / / / / / /
// 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')
This is happening because of this line (apply from: "../../node_modules/react-native/react.gradle") in app/buil.gradle. This is required by older versions of codepush however they fixed it in the latest release.
Fix:
remove apply from: "../../node_modules/react-native/react.gradle"
from app/build.gradle
Update react-native-code-push to v8.0.1
rebuild android and you should be good to go
You can confirm the apply from: "../../node_modules/react-native/react.gradle" is the problem by creating a new project in RN and adding this line in the app/build.gradle.
And also double check code-push is working for you.
Reacted by Mansi Laad, Daniel Muñoz, Filip Frlić, Bohdan Asauliuk, Mohamed Abbas, Rogelio Macedo and tungnguyenit0201
Reacted by Mateus Cazuza and CodeAura-a
Reacted by Minhnh, Wes Johnson, Maolon, Manos Kasimatis, Hannibal B. Moulvad, Mansi Laad, Daniel Muñoz and Rogelio Macedo
This is happening because of this line (apply from: "../../node_modules/react-native/react.gradle") in app/buil.gradle. This is required by older versions of codepush however they fixed it in the latest release.
Thanks for verifying this @rada You're right that line is unnecessary.
Closing as this is now solved
This is happening because of this line (apply from: "../../node_modules/react-native/react.gradle") in app/buil.gradle. This is required by older versions of codepush however they fixed it in the latest release.
Fix:
remove apply from: "../../node_modules/react-native/react.gradle"
from app/build.gradle
Update react-native-code-push to v8.0.1
rebuild android and you should be good to go
You can confirm the apply from: "../../node_modules/react-native/react.gradle" is the problem by creating a new project in RN and adding this line in the app/build.gradle.
And also double check code-push is working for you.
This is happening because of this line (apply from: "../../node_modules/react-native/react.gradle") in app/buil.gradle. This is required by older versions of codepush however they fixed it in the latest release.
Fix:
remove apply from: "../../node_modules/react-native/react.gradle"
from app/build.gradle
Update react-native-code-push to v8.0.1
rebuild android and you should be good to go
You can confirm the apply from: "../../node_modules/react-native/react.gradle" is the problem by creating a new project in RN and adding this line in the app/build.gradle.
And also double check code-push is working for you.
This is happening because of this line (apply from: "../../node_modules/react-native/react.gradle") in app/buil.gradle. This is required by older versions of codepush however they fixed it in the latest release.
Fix:
remove apply from: "../../node_modules/react-native/react.gradle"
from app/build.gradle
Update react-native-code-push to v8.0.1
rebuild android and you should be good to go
You can confirm the apply from: "../../node_modules/react-native/react.gradle" is the problem by creating a new project in RN and adding this line in the app/build.gradle.
And also double check code-push is working for you.
@rada Hi guys,
Thank you so much it works for me in Debug mode. However when it comes to release mode, the app build successfully but pictures are shown...I have to add apply from: "../../node_modules/react-native/react.gradle" for the release App to work! It is so annoying.
Any ideas guys? Thank you so much
Activity
cortinico commentedon Mar 20, 2023
Can someone try the reproducer provided by @NguyenHoangMinhkkkk and verify that it consistently happening?
NguyenHoangMinhkkkk commentedon Mar 21, 2023
And one more thing.
in gradle.properties, if hermesEnabled set as false then the app works.
poojasolanki9569 commentedon Apr 12, 2023
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?
rada commentedon May 9, 2023
This is happening because of this line (
apply from: "../../node_modules/react-native/react.gradle") inapp/buil.gradle. This is required by older versions of codepush however they fixed it in the latest release.Fix:
apply from: "../../node_modules/react-native/react.gradle"from app/build.gradle
You can confirm the
apply from: "../../node_modules/react-native/react.gradle"is the problem by creating a new project in RN and adding this line in the app/build.gradle.And also double check code-push is working for you.
cortinico commentedon May 9, 2023
Thanks for verifying this @rada You're right that line is unnecessary.
Closing as this is now solved
NguyenHoangMinhkkkk commentedon May 9, 2023
Thanks 🚀
vlack-coder commentedon May 17, 2023
Worked perfectly
mansilaad19 commentedon Jul 10, 2023
Thank you @rada
anhquan291 commentedon Aug 11, 2023
@rada Hi guys,
Thank you so much it works for me in Debug mode. However when it comes to release mode, the app build successfully but pictures are shown...I have to add
apply from: "../../node_modules/react-native/react.gradle"for the release App to work! It is so annoying.Any ideas guys? Thank you so much