CommandInvokationFailure: Failed to re-package resources. Please Help.

So i got this error suddenly and i guess its probably because i installed Android 6.0 from SDK manager.

But i don’t know how to fix it,can someone please tell me???

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
D:\Program Files (x86)\Android\android-sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S “res” -I “D:/Program Files (x86)/Android/android-sdk\platforms\android-23\android.jar” -F bin/resources.ap_ --extra-packages -S “D:\Unity Projects\Projects5.3.5\2DGame1\Temp\StagingArea\android-libraries\unity-android-resources\res” -S “D:\Unity Projects\Projects5.3.5\2DGame1\Temp\StagingArea\android-libraries\unityads-release\res”



Finally found the solution.

Just remove the 24.0.0 build tools folder from Android\sdk\build-tools and it ll work,

In case you have low data cap then you can just cut the 24.0.0 build tools from that folder and save it in a different folder.And paste it back if required.
Or else just delete that folder. :slight_smile:

Find the answer : Re-packaging failure when building for android - Questions & Answers - Unity Discussions