在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
时间: 2024-10-28 21:55:33