标题: Unity打包安卓注意事项(包含Gradle配置问题) [打印本页] 作者: 九天猎人 时间: 2025-4-19 07:02 标题: Unity打包安卓注意事项(包含Gradle配置问题) 近来在用unity打包安卓项目,Gradle频仍报错,在此记载下安卓的调试过程:
unity版本:2021.3.45
平板型号:华为 错误:版本不匹配导致打包出错
The current default is 'true'. It will be removed in version 8.0 of the Android Gradle plugin. WARNING:The option setting 'android.aapt2FromMavenOverride=C:\Program Files\Unity\Hub\Editor\2021.3.45f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\34.0.0\aapt2.exe' is experimental. WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 35 This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33 This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=35 to this project's gradle.properties 办理方案:自己从网上下载gradle最新版本并替换
首先打开gradle,下载最新版
Gradle | Releases