此版本不符合 Google Play 64 位要求 Google 警告

Use*_*590 5 android apk google-play

所以我在上传 apk 时收到以下消息。现在为此,我在这个问题上进行了大量搜索,发现我的项目包含来自第三方 lib 的一些本机代码,在 apk 构建后,我分析了 apk 并知道有 lib 文件夹,而在 lib 文件夹中只有 arc 32 位文件正在生成。

因此,为此我删除了那些使用本机开发代码的第三方库,并添加了那些兼容的第三方库,这些库是本机无代码库。现在在此之后我构建了一个发布 apk 并通过 apk 分析器对其进行分析 现在通过分析器没有生成 lib 文件夹。然后再次分别在 32 位和 64 位架构上安装 apk 并且 apk 成功运行。

现在我在 google play 商店上传了应用程序,但仍然收到相同的警告。我已经三次检查了 apk,没有 lib 文件夹和 32 位 arch 的 .so 文件。任何帮助将不胜感激。

Warning

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: 5.

From August 1, 2019 all releases must be compliant with the Google Play 64-bit requirement.

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. Learn More
Run Code Online (Sandbox Code Playgroud)

此外,我还添加了这个 myn build gradle 文件

android {
    compileSdkVersion 28
    defaultConfig {
        ndk.abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
    }
      bundle {
            abi {
                // Specifies that the app bundle should  support
                // configuration APKs for different arch. These
                // resources are instead packaged with each base and
                // dynamic feature APK.
                enableSplit = true
            }

            language {
                // Specifies that the app bundle should not support
                // configuration APKs for language resources. These
                // resources are instead packaged with each base and
                // dynamic feature APK.
                enableSplit = true
            }
        }
}
Run Code Online (Sandbox Code Playgroud)