2019 年 8 月 NDK 64 位要求英特尔二进制文件

August 2019 NDK 64 bit requirement Intel binary

作为本地 Android 开发人员,我正在寻找有关我的 Android 应用的最新 Google 要求的信息。 其中之一来自博客post

https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html

In August 2019, Play will require that new apps and app updates with native libraries provide 64-bit versions in addition to their 32-bit versions.

现在我的应用程序中有 x86 库。添加x86_64版本没问题,但是

  1. 我从未见过 Intel 64 位 smartphone/tablet 可用。
  2. 英特尔看起来很快就会像 NDK 中的 MIPS 一样被淘汰。还有一些 2016 年的 Zenfone 可能有人会用,所以这就是为什么我的 apk 中有 x86。

问题是支持 Google 64 位新要求的最正确方法是什么?如果我有 32 位二进制或 ARM64 就足够了,我是否需要 Intel 64 位?

apk 的大小如何?我拥有的二进制文件越多,我的 apk 就越大。现在它已经是 ~98MB。最大大小为 100MB。那么如果我们强制添加 64 位,最大 apk 大小是否也会增加?或者我需要为每个平台创建 apk?

我将使用新的 App Bundles 作为最佳解决方案。每个平台的 APK 都是自动创建的,因此是否包含 Intel 64 位并不重要。