我正在使用以下实现:'com.google.vr:sdk-panowidget:1.160.0'
以显示360图像,但出现以下错误;在将应用上传到商店时:
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文件。
请帮助!
答案 0 :(得分:11)
我的应用程序也遇到了同样的问题,这对我有用。
我正在使用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
}
}
}
这可以让我在出现任何问题时在google playstore中发布。 希望对您有帮助!
答案 1 :(得分:2)
检查分析。步骤为Here。 完成上述步骤并生成apk之后,将其上传到Play商店时会出现相同的错误。
在上载到Play商店之前,请检查您的APK是否支持64位体系结构。遵循并检查Here给出的说明。尤其要遵循链接中提到的使用Bundletool 。
提示::使用捆绑软件工具。将您的jks,aab和构建工具jar文件保存在同一文件夹中。
如果仍然在命令提示符下收到警告,提示为“ 警告:应用程序捆绑包包含32位RenderScript位代码文件(.bc),该文件会禁用 es在Android中支持64位。 Gener将不包含64位本机库 ”,那么您需要检查代码。
可能的是,您可以将项目添加为模块,并且可以包含本机代码。因此,如何检查您的项目是否具有本机代码。为此,请检查每个模块中的 res / raw 文件夹。它可能具有* .bc文件。如果您的模块正在使用任何脚本文件/类,请尝试更新模块gradle文件中的 renderscriptTargetApi 。
如果问题已解决,那么您可能不会在任何文件夹中看到* .bc文件,然后在命令提示符下再次检查是否支持64位。如果您不会收到任何警告,则可以进行部署。
答案 2 :(得分:1)
从2019年8月1日开始:
- 发布到Google Play时,除32位版本外,所有包含本机代码的新应用程序和应用程序更新都必须提供64位版本。
扩展名:Google Play将继续接受使用以下SDK的现有游戏的仅32位更新:
- Corona Labs 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
答案 3 :(得分:1)
我也遇到了同样的问题,因为lib中没有x86_64.so文件,但是它正在生成“ armeabi-v7a”,“ arm64-v8a”和“ x86” .so文件,我只是通过更新来解决了问题图书馆
我有'org.adblockplus:adblock-android-webview:3.14'
,我刚刚将其更新为3.16
问题就解决了。
因此,请检查您的图书馆文档,并请注意,有时文档不包含升级版本,您只需点击并尝试(例如,从3.14更改为3.15或3.16)即可获取最新版本。