Hello
after react-native init myapp
i install the realm
but when react-native run-android
app is not running
"unfortunately app has stopped react native"
react native : 0.58.4
realm : latest version of realm
hi,you can resolve this issue with adding this instruction :
ndk {
abiFilters 'armeabi-v7a', 'x86'
}
in "defaultConfig" section in "android/app/build.gradle" file
Demo:
Worked !!
Thank You :) <3
Thank you
Worked for me !! Thanks
Error still exists. Attaching screenshit

Error still exists. Attaching screenshit
update realm to 2.28.0 version
it's gonna be fixed.
+1, I still got app has stopped when I build to apk file and install in real phone. It's still run good in simulator :(
defaultConfig {
applicationId "com.fushimescanner"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
missingDimensionStrategy "RNN.reactNativeVersion", "reactNative60"
missingDimensionStrategy 'react-native-camera', 'general'
multiDexEnabled true
versionCode 1
versionName "1.0"
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64", "abiFilters"
}
}
@trungnguyencmu did u solve this problem?
Adding this line:
ndk { abiFilters 'armeabi-v7a', 'x86' }
Fixed the issue. I was having the following symptom:
After installing/using Realm in the app it started to crash, but only in the first execution. When opening the app again, with the default.realm already created, the app open normally.
React Native 0.63.2
Realm 6.0.4
I added
ndk { abiFilters 'armeabi-v7a', 'x86' }
but the error persists. Any idea?
Android Studio: https://developer.android.com/ndk/guides/abis#gc (They Updated it)
android {
defaultConfig {
ndk {
abiFilters 'arm64-v8a', 'x86_64'
}
}
}
@workpebojot Thanks for reporting that.
I'm still having this issue.
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}
I've tried setting the abiFilters to either of those, and the app just crashes when trying to launch. React-Native 0.63.x.
Turn off Hermes feature on android/app/build.gradle
project.ext.react = [
enableHermes: false, // clean and rebuild if changing
]
worked for me on RN 0.63
Most helpful comment
hi,you can resolve this issue with adding this instruction :

ndk { abiFilters 'armeabi-v7a', 'x86' }in "defaultConfig" section in "android/app/build.gradle" file
Demo: