简体   繁体   English

使用NDK库时是否需要在build.gradle文件中添加arm64-v8a

[英]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.

相关问题 Android NDK:如何使用minimumSdkVersion = 19为ARM64-v8a构建 - Android NDK: How to build for ARM64-v8a with minimumSdkVersion = 19 Nexus 9的NDK调试arm64-v8a版本不适用于Eclipse - NDK Debug for Nexus 9 arm64-v8a build not working for eclipse 找不到 Gradle DSL 方法:'arm64-v8a()' - 无法构建 - Gradle DSL method not found: 'arm64-v8a()' - unable to build 我们什么时候需要添加对 arm64-v8a 的支持? - When do we need to add support for arm64-v8a? 在arm64-v8a lib上运行ndk-stack失败,并出现错误无法识别文件格式 - running ndk-stack on arm64-v8a lib fail with error File format not recognized 如何使用build.gradle文件向Android NDK添加静态库? - How can I add a static library to Android NDK using the build.gradle file? 适用于arm64-v8a的Android CSipSimple构建失败 - Android CSipSimple Build Fail for arm64-v8a 为Android arm64-v8a构建POCO失败 - Build POCO for Android arm64-v8a fails 无法为 com.android.build.gradle.internal.dsl.NdkOptions 类型的对象获取未知属性“arm64-v8a” - Could not get unknown property 'arm64-v8a' for object of type com.android.build.gradle.internal.dsl.NdkOptions Android NDK:无法在 64 位设备上加载 arm64-v8a - Android NDK: unable load arm64-v8a on 64bit device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM