我想使用Android Studio为当前的32位(目前为32位)的android应用添加64位兼容性。我已经通过了https://developer.android.com/distribute/best-practices/develop/64-bit#building_with_android_studio_or_gradle。
我需要更改build gradle
文件中的代码,但是当我构建应用程序并假定具有arm64-v8a
和/或x86_64
时没有。
有人可以向我说明具体步骤吗?
这里是我的插件的屏幕截图和我应用的.so文件我正在使用ionic 1并从android studio构建应用程序
build.gradle
apply plugin: 'com.android.app'
android {
compileSdkVersion 27
defaultConfig {
appId "com.google.example.64bit"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
// ...reference
productFlavors {
armeabi {
versionCode defaultConfig.versionCode*10 + 1
ndk {
abiFilters = ["armeabi"]
}
}
armv7 {
versionCode defaultConfig.versionCode*10 + 2
ndk {
abiFilters = ["armeabi-v7a"]
}
}
arm64 {
versionCode defaultConfig.versionCode*10 + 3
ndk {
abiFilters = ["arm64-v8a"]
}
}
x86 {
versionCode defaultConfig.versionCode*10 + 4
ndk {
abiFilters = ["x86"]
}
}
x86_64 {
versionCode defaultConfig.versionCode*10 + 5
ndk {
abiFilters = ["x86_64"]
}
}
}
按照此链接,已使用mobilefirst解决https://mobilefirstplatform.ibmcloud.com/blog/2019/05/24/Google-Play-64-bit-requirement/