此版本不符合 Google Play 64 位要求。本机 java 应用程序的所有 .so 已存在

This release is not compliant with the Google Play 64-bit requirement. All .so already exists for native java app

我正在尝试将我的原生 android 应用程序发布到商店,但我遇到了这个错误

Error This release is not compliant with the Google Play 64-bit requirement

The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 50.

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.

我已经确保所有 x86 armeabi-v7a x86_64 arm64-v8a 都存在并且它们具有相似的 .so 文件

并将其添加到应用 gradle 文件

ndk {abiFilters  "x86", "armeabi-v7a", "x86_64", "arm64-v8a"}

这里是 apk 分析器的截图https://i.ibb.co/BwXp3ZH/Screenshot-from-2019-08-23-04-28-28.png

x86_61 和 arm64-v8a 中缺少一些 .so 文件,但我已经解决了这个问题并更新了我的库,但不幸的是我仍然遇到同样的错误。我还能做些什么来检查这个?

我设法删除了所有 .so 文件和 lib 目录,但问题仍然存在。

在检查我的项目模块时,我在 build.gradle

中发现了这一行
renderscriptTargetApi 20

增加目标 api 解决了问题。

参考资料 https://developer.android.com/guide/topics/renderscript/compute https://developer.android.com/guide/topics/renderscript/reference/overview