[英]React Native Android 64-bit upgrading issue
I uploaded build.gradle to satisfy 64-bit recommendation, now im using 0.57.5 version (because this app is very large and was developing last year). 我上载了build.gradle以满足64位推荐,现在我使用的是0.57.5版本(因为此应用非常大,正在去年开发中)。
defaultConfig {
applicationId "xxxxxx"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
renderscriptTargetApi 27
renderscriptSupportModeEnabled true
versionCode 11
versionName "1.6"
multiDexEnabled = true
ndk {
abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a','x86_64'
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include 'armeabi-v7a', 'x86', 'arm64-v8a', 'x86_64'
}
}
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// https://developer.android.com/studio/build/configure-apk-splits.html
def versionCodes = ['armeabi-v7a': 1, 'x86': 2, 'arm64-v8a': 3, 'x86_64': 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
64-bit phones keep crashing once launch. 一旦启动,64位电话就会继续崩溃。 What i can do without upgrade react-native version?
没有升级react-native版本我可以做什么? If i have to upgrade, what version is stable now and what is the safest way.
如果我必须升级,什么版本现在可以稳定,什么是最安全的方法。
couldn't find DSO to load: libreactnativejni.so caused by: couldn't find DSO to load: libglog_init.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libgnustl_shared.so caused by: dlopen failed: "/data/data/com.hashtagaboutme.pjcujob/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit
Please check this blog ReactNative and Android: 64 bit. 请查看此博客ReactNative和Android:64位。 New Google Play rules.
新的Google Play规则。 What to do?
该怎么办?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.