【发布时间】:2023-02-17 20:18:51
【问题描述】:
通过在 build.gradle 文件中添加与此类似的块,我有一个像这样在 ABI 上拆分的应用程序:
splits {
abi {
...
reset()
include("x86", "armeabi-v7a", "arm64-v8a", "x86_64")
}
}
通过以下方式配置版本控制:https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions
当我尝试将 4 个 APK 上传到 Play 商店时,x86 ABI 的 APK 有一条错误消息:
The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: [1100002]
Include 64-bit and 32-bit native code in your app. Use the Android App Bundle publishing format to automatically ensure that each device architecture receives only the native code it needs. This avoids increasing the overall size of your app.
版本代码细分如下:
- armeabi-v7a - 1100001
- x86 - 1100002
- x86_64 - 1100003
- arm64_v8a - 1100004
为什么说我需要在专门为 32 位设备拆分的 APK 中包含 64 位二进制文件?基于 arm 的 APK 不会出现同样的错误,只有 32 位 x86 APK 才会出现。如果我需要在 x86 ABI 中包含 64 位资源,那么拆分它们有什么意义?
【问题讨论】:
标签: android google-play google-play-console