Playstore中的Apk上传错误-64位警告 [英] Apk Upload error in playstore - 64 bit warning

查看:561
本文介绍了Playstore中的Apk上传错误-64位警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using this implementation: 'com.google.vr:sdk-panowidget:1.160.0' in order to show 360 image, but I get the error below; while uploading app to play store:

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文件.

Note: The lib is not creating lib/x86_64.so file.

请帮助!

推荐答案

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

I had the same problem with my app and this is what worked for me.

我正在使用AAB格式上载该应用程序,而我的build.gradle具有以下体系结构目标:"armeabi-v7a","arm64-v8a","x86","x86_64". 但是,在构建项目之后,未在AAB内创建"x86_64"文件夹.所以我决定删除'x86'和'x86_64',现在我的build.graddle看起来像这样

I'm using the AAB format to upload the app and my build.gradle had this architecture targets: "armeabi-v7a", "arm64-v8a, "x86","x86_64". But after building the project, the 'x86_64' folder was not created inside the AAB. So I decided to remove 'x86' and 'x86_64' and now my build.graddle looks like this

     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中发布. 希望对您有帮助!

This allow me to publish in google playstore with any problems. Hope it helps!

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

NOTE: Please, note that removing target architectures results in less target devices, as @UzairAslam says in comments below. So, try to understand if this workaround fits to your project needs.

这篇关于Playstore中的Apk上传错误-64位警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆