Unity 生成APK 出错的解决方法

在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

posted @ 2016-08-18 13:27  jwkfreedom  阅读(...)  评论(... 编辑 收藏