Unity 生成APK 出错的解决方法

在unity生成apk时,报错:

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

   C:adt-bundle-windows-x86_64-20140702sdkuild-toolsandroid-4.4Waapt.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-20android.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

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