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

时间:2019-05-28 09:03:44

标签: android google-play apk

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

因此,为此,我删除了那些使用本机开发代码的第三方库,并添加了那些兼容的,没有本机代码的第三方库。现在,在此之后,我构建了一个发行版apk,并通过apk分析器对其进行了分析。现在,通过分析器,没有生成任何lib文件夹。然后再次将apk分别安装在32位和64位arch上,并且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

此外,我还添加了此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
            }
        }
}

0 个答案:

没有答案