Apk 上传错误在游戏商店 - 64 位警告



我正在使用这个实现:'com.google.vr:sdk-panowidget:1.160.0'为了显示360图像,但我收到以下错误; 将应用程序上传到Play商店时:

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: 130.
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 that it needs. 
This avoids increasing the overall size of your app. Learn More

注意:库不会创建 lib/x86_64.so 文件。

请帮忙!

我的应用程序遇到了同样的问题,这就是对我有用的。

我正在使用AAB格式上传应用程序,我的build.gradle具有以下架构目标:"armeabi-v7a","arm64-v8a","x86","x86_64"。 但是在构建项目后,不会在 AAB 中创建"x86_64"文件夹。所以我决定删除"x86"和"x86_64",现在我的build.graddle看起来像这样

defaultConfig {
...
ndk {
abiFilters  "armeabi-v7a", "arm64-v8a"
}
...
}
splits {
abi {
...
include  "armeabi-v7a", "arm64-v8a"
}
}
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "arm64-v8a":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) {  // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}

这使我可以在谷歌Playstore中发布任何问题。 希望对您有所帮助!

注意:请注意,删除目标架构会导致目标设备减少,如下面的评论中所述@UzairAslam。因此,请尝试了解此解决方法是否适合您的项目需求。

从 2019 年 8 月 1 日开始:

  • 发布到 Google Play 时,除了 32 位版本外,所有包含原生代码的新应用和应用更新都必须提供 64 位版本。
  • 扩展:Google Play 将继续接受对使用以下 SDK 的现有游戏的仅限 32 位的更新:

    • 科罗纳实验室SDK - 直到2020年8月
    • Adobe Air 软件和 AIR SDK - 至 2020 年 8 月
    • Unity 5.6.7 或更早版本 - 至 2021 年 8 月

有关详细信息,请参阅 https://android-developers.googleblog.com/2019/01/get-your-apps-ready-for-64-bit.html

检查分析。 步骤在这里。 完成步骤并生成apk后,上传到Play商店时会给出相同的错误。

在上传到Play商店之前,请检查您的apk是否支持64位架构。 按照此处给出的说明进行操作。特别遵循链接中提到的使用捆绑工具

提示:在使用捆绑工具时。 将 JKS、AAB 和构建工具 jar 文件保留在同一文件夹中。

如果您仍然在命令提示符下收到警告,如">警告:应用程序捆绑包包含 32 位 RenderScript 位码文件 (.bc(,该文件将禁用 在安卓中支持 64 位。64 位本机库不会包含在 gener 中 "啪啪�然后你需要检查你的代码。

可能性是,您可以将项目添加为模块,并且可能具有本机代码。那么如何检查你的项目是否有原生代码。为此,请检查每个模块中的res/raw文件夹。它可能有 *.bc 文件。如果您的模块正在使用任何脚本文件/类,请尝试更新模块 gradle 文件中的renderscriptTargetApi

如果问题已修复,那么您可能不会在任何文件夹中看到 *.bc 文件,然后在命令提示符下再次检查是否支持 64 位。如果您没有收到任何警告,那么您可以去部署。

我也有同样的问题,因为库中没有 x86_64.so 文件,但它正在生成"armeabi-v7a"、"arm64-v8a"和"x86".so 文件,我只是通过更新库解决了这个问题 我有'org.adblockplus:adblock-android-webview:3.14',我刚刚将其更新到 3.16 问题解决了。 因此,请检查您的库文档,并注意有时文档不包含升级版本,您只需点击并尝试(例如从 3.14 更改为 3.15 或 3.16(才能获得最新版本。

相关内容

最新更新