[英]Is it necessary to add arm64-v8a in build.gradle file when using NDK libraries
I am using NDK libraries
in my app, these are the settings in my gradle file.我在我的应用程序中使用
NDK libraries
,这些是我的 gradle 文件中的设置。
defaultConfig {
applicationId 'com.aa.aa'
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0.0"
multiDexEnabled true
resConfigs "en"
ndk {
abiFilters 'armeabi-v7a','x86'
}
}
But now if i upload my apk on play store, it give me error message that, my app is cont complaint with 64-bit architecture
.但是现在如果我在 Play 商店上传我的 apk,它会给我错误消息,我的应用程序是
64-bit architecture
持续投诉。
Now if i add arm64-v8a
, i am able to upload the build on playstore.现在,如果我添加
arm64-v8a
,我就可以在 Playstore 上上传构建。
defaultConfig {
applicationId 'com.aa.aa'
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0.0"
multiDexEnabled true
resConfigs "en"
ndk {
abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
}
}
My questions is that is that is it necessary to add arm64-v8a
in build.gradle file when using NDK libraries.我的问题是使用 NDK 库时是否需要在 build.gradle 文件中添加
arm64-v8a
。
If taken literally, your question can be answered "No".如果从字面上看,您的问题可以回答“否”。 If you remove the whole
abiFilters
line from build.gradle, your app will be built for 64-bit as well.如果您从 build.gradle 中删除整个
abiFilters
行,您的应用程序也将针对 64 位构建。
具有原生 64 位兼容性是 Play 商店的一项要求,对于应用更新,自 2019 年 8 月起强制执行。如果您使用其他机制来交付您的应用,则不需要 arm64-v8a。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.