项目在ios运行正常,到安卓端就闪退了,后面通过Android Studio看了一下错误日志,找到了这么一句话:
解决方式:
在app下的build.gradle添加
defaultConfig {
applicationId "com.example.lipiao.myreactnativeapp"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
ndk{
abiFilters "armeabi-v7a","x86"
}
}
packagingOptions {
exclude "lib/arm64-v8a/librealm-jni.so"
}