- Home /
Build error
Everytime I try to build my app it gives this error
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\Shay\Documents\Android SDK\adt-bundle-windows-x86_64-20140702\sdk\build-tools\19.1.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Shay/Documents/Android SDK/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-20\android.jar" -F bin/resources.ap_
I have no idea why it is doing this. I just installed more sdk packages using the sdk manager if that would have anything to do with it.
I have tried reinstalling the android sdk but I still get the error
When installing new SD$$anonymous$$s you must make sure to install the Platform tools (Build tools) also.
Answer by Turbine · Aug 26, 2014 at 02:18 AM
Try deleting everything but the Assets and ProjectSettings folders at the root of your project (obviously back everything up first). I've had some really weird Unity+Android bugs solved by this. Did you set the location of the Android SDK within unity? At some point Android Build Tools 17 was haunted and could mess up Unity, that was like a year ago though.
Answer by ximitimix · Aug 26, 2014 at 02:40 AM
ive seen that error a few times, once was because i added a plugin that required an updated sdk (fixed by updating sdk) the second time it happened i couldn't figure it out, but a full remove and reinstall of unity and the sdk fixed it for me
Your answer
Follow this Question
Related Questions
erorr in building scene ????? 0 Answers
Android Build Error 2 Answers
What does this error even mean? 1 Answer
android building error 1 Answer
Android build error "you need android files to build" 1 Answer