Android 64 bit architecture support

[亡魂溺海] 提交于 2019-12-23 01:58:45

问题


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

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.

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?


回答1:


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'

    }
}


来源:https://stackoverflow.com/questions/56836071/android-64-bit-architecture-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!