Android 64位架构支持 [英] Android 64 bit architecture support

查看:786
本文介绍了Android 64位架构支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多人都知道,从2019年8月开始,Google将确保所有应用程序都支持64位体系结构. https://developer.android.com/distribute/best-practices/develop/64位

As many of you know Aug 2019 onwards Google is making sure all apps are supported 64 bit architecture.https://developer.android.com/distribute/best-practices/develop/64-bit

这提出了支持arm和x86的64位体系结构的要点.对于x86,我认为没有可用的设备.只有具有x86支持的仿真器.

That brings up the point to support 64 bit architectures for arm and x86. For x86 I think no devices are available. It's only emulators who has x86 support.

我的应用程序使用一些本机代码.所以我的问题是我的应用程序是否与arm兼容,而与86不兼容.google是否接受我的更新?不提供x86_64 * .so文件是否表示我放弃对x86的支持?

My application uses some native code. So my question is if my application is 64 bit compatible for arm and not for 86. Does google accepts my updates? Doe not providing x86_64 *.so files means I am dropping support of x86?

推荐答案

只需在应用程序级别gradle中添加行ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64','armeabi','mips'即可支持64位.

Just add the line ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64','armeabi','mips' in your app level gradle to also support 64 bit.

android {
    ...
    defaultConfig {
        ...
        ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64','armeabi','mips'

    }
}

这篇关于Android 64位架构支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆