码迷,mamicode.com
首页 > 编程语言 > 详细

Unity 生成APK 出错的解决方法

时间:2016-08-18 14:24:06      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:

在unity生成apk时,报错:

   Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.

   C:\adt-bundle-windows-x86_64-20140702\sdk\build-tools\android-4.4W\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-20\android.jar" -F bin/resources.ap_

 

解决方案: 

1) 运行android的 SDK Manager.

2) 在工具中安装 Android SDK tools 25.1.7 和 Android SDK Platfomr-tools 24 .

3) 删除 Android SDK Build-tools 24 然后 安装 23.0.1 . (实测过,23.0.3 貌似都不行)

 

网上来源: 

http://answers.unity3d.com/questions/760989/failed-to-re-package-resources-2.html

Unity 生成APK 出错的解决方法

标签:

原文地址:http://www.cnblogs.com/laomanong/p/5783599.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!