报错:
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors ? at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <dee5332789ab43dda30f837d99674efe>:0? ? at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <dee5332789ab43dda30f837d99674efe>:0? UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
unity player调用很多种gradle,可以尝试勾选不同的gradle,然后重新build
路径如下:
C:\Program Files\Unity\Hub\Editor\2020.3.25f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\GradleTemplates
同步可参考如下链接:
Unity2019及Unity2020打包android的环境配置 - 赵青青 - 博客园
|