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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM