Unity apk打包失败的解决方法 |
您所在的位置:网站首页 › html5打包apk › Unity apk打包失败的解决方法 |
1.遇到无法打包首先检查一下Edit-External Tools-Android下的JDK、SDK、NDK、Gradle是否下载完整 2.遇到 打包安卓APK 时报错: Configure project :launcher WARNING: The option ‘android.enableR8’ is deprecated and should not be used anymore. It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8. 请查看 原文链接:Unity发布安卓 :launcherWARNING: The option setting ‘android.enableR8=false‘ is depre - 游戏编程 🕹️ (233tw.com) 3.遇到 Failed to query the value of task 'xx:compileDebugJavaWithJavac' 要保证自己的gradle的版本和build:gradle相匹配,比如我的com.android.tools.build:gradle:4.0.1要与gradle6.1.1匹配 gradle下载链接Gradle Distributions 4.遇到 building gradle project 卡住(>20分钟) (1)修改E:\Unity1\Editor\2020.3.24f1c2\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\GradleTemplates\gradleTemplate.properties里的内容 或者 (2)下载新的gradle,同时将他安装在Edit-External Tools-Gradle Installed with Unity所对应的目录下 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |