上次我在 Play 商店发布我的应用的新版本时,它显示了这个警告:This release is complaint with the Google Play 64-bit requirement.
根据 Android 开发者网站:Support 64-bit architectures
Look for native libraries using APK Analyzer
Open Android Studio, and open any project.
From the menu, select Build > Analyze APK…
launch APK analyzer
Choose the APK you wish to evaluate.
Look within the lib folder, which is where you will find any '.so' files. If you can not find any '.so' files in your app at all, then your app is already ready and no further action is required. If you see armeabi-v7a or x86, then you have 32-bit libraries.
应用程序的所有代码都是用 Java 编写的,但我使用了一些库。
最佳答案
可能您的一个(或多个)库包含 native 二进制文件,但它们不支持 64 位架构。
您可以通过获取您的 apk 文件并解压缩它来检查这一点(例如,您可以重命名为 .zip
然后解压缩)。
在 zip 中,打开 lib
目录,并检查其内容。 64 位版本应位于 arm64-v8a
和 x86_64
目录中。据我所知,Android 只查找 ARM 版本,如果缺少该版本,则会显示警告。您通常可以从 lib
中其他目录中的 native 文件名中找出哪些依赖项包含这些文件。
通常将该库更新到最新版本就足够了,否则您可能需要寻找替代方案。
关于Android 应用程序,如何支持 64 位架构?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59117461/