问题
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