Realm-js: unfortunately app has stopped react native ( after installing realm )

Created on 11 Feb 2019  路  14Comments  路  Source: realm/realm-js

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

O-Community T-Help

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:
Capture

All 14 comments

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:
Capture

Worked !!
Thank You :) <3

Thank you

Worked for me !! Thanks

Error still exists. Attaching screenshit
Screenshot 2019-10-20 at 11 22 55 AM

Error still exists. Attaching screenshit
Screenshot 2019-10-20 at 11 22 55 AM

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmartindivmedianet picture jmartindivmedianet  路  3Comments

blagoev picture blagoev  路  3Comments

laznrbfe picture laznrbfe  路  3Comments

timanglade picture timanglade  路  3Comments

texas697 picture texas697  路  3Comments