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

查看:105
本文介绍了Unity 导出 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

以下 APK 或 App Bundle 适用于 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.

然后您可以选择按目标架构生成拆分 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 导出 Android 64 位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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