I have been trying to add ReactNative to my existing android application. I followed the instructions from this link. I could add it but the app gets crashed once I open the
you can use the old version of soloader by adding configurations.all into your build.gradle
configurations.all {
resolutionStrategy {
force "com.facebook.soloader:soloader:0.8.2"
}
}
like this
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
configurations.all {
resolutionStrategy {
force "com.facebook.soloader:soloader:0.8.2"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
reference https://stackoverflow.com/a/61695629/8079868
It might be lib\x86_64\libreactnativejni.so not found due to missing strip tool for ABI 'X86_64' Try the following steps.
Clean the android folder
Navigate to android folder cd android
.
Clean the directory using gradle
For Windows, gradlew clean
./graldew clean
Now you can try react-native run-android --no-jetifier
To me what worked was to clean project build and build it again.