UnityEditor.BuildPlayerWindow+BuildMethodException

unity3D安卓打包报错:

UnityEditor.BuildPlayerWindow+BuildMethodException: 61 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in D:\unity\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in D:\unity\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97 
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

百度到的老外的解释是这样的:

As you have noticed after you click build settings you are prompt to download it in the asset, which unity wouldn't allow to build exe files inside asset. in that case, try building it in a different folder or in desktop. It works fine for me! :D

也就是不要将打包的输出路径设置为Assets文件夹下面

但是检查了一下,我这边并没有这样设置。不过后来尝试了很多其他方案都没有解决,就干脆将build结果输出到了桌面。然后打包就不在报错了。。。。。

非常神奇,记录一下~ 

 

--补充:上头打包成功一次之后,重新将build的位置指向之前始终打包失败的位置,居然成功了?!!

 

--20200624补充:打包到桌面无效的朋友,可以试一下下头评论里面的一个方案:打包设置改gradle 为 internal,成功的话,到评论区感谢下他哈

  • 12
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 28
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 28
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值