Unity Export Android 64位 [英] Unity Export Android 64-bit

查看:1040
本文介绍了Unity Export Android 64位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图将.abb上传到Google Play控制台.当我上传它时,它给了我这个错误:

I've been trying to upload .abb to the google play console. When I upload it, it gives me this error:

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

This release is not compliant with the Google Play 64-bit requirement

以下APKs或应用程序捆绑包可用于64位设备,但它们仅具有32位本机代码:2.

The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 2.

从2019年8月1日开始,所有发行版都必须符合Google Play 64位要求.

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

在您的应用程序中包含64位和32位本机代码.使用Android App Bundle发布格式自动确保每种设备架构仅接收所需的本机代码.这样可以避免增加应用程序的整体大小.

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.

我试图导出64位版本,但是我做不到.

I tried to export an 64-bit version but I couldnt do it.

推荐答案

Unity自2017年LTS开始支持x64.要启用它,您可以转到文件">构建设置">播放器设置".

Unity supports x64 since 2017 LTS. To enable it you can go to File > Build Settings > Player Settings.

在其他设置"下,您必须将脚本后端更改为IL2CPP,并且将使ARM64复选框处于活动状态.核实.

There under "Other Settings" you have to change your Script Backend to IL2CPP, and you will have the ARM64 checkbox active. Check it.

然后您可以选择通过Target Architecture生成Split APK

And then you can either select to generate Split APKs by Target Architecture

或在构建设置"对话框中选择构建应用程序捆绑包(Google Play)".

or in your Build Settings dialog choose to Build App Bundle (Google Play).

希望这会有所帮助,为此您将需要Android NDK.

Hope it helps, you will need to have the Android NDK for this.

这篇关于Unity Export Android 64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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