CommandInvokationFailure: Failed to re-package resources. (Strange error)

I am facing this strange error, and i am not able to find any solutions to it.
here is my console readings .
CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\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 “C:/Program Files (x86)/Android/android-sdk\platforms\android-24\android.jar” -F bin/resources.ap_

stderr[

]
stdout[

]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessAndroidPlayer.Exec (System.String command, System.String args, System.String workingdir, System.String progress_strings, Single progress_value, System.String errorMsg)
UnityEditor.Android.PostProcessAndroidPlayer.CompileResources (System.String stagingArea, System.String packageName, UnityEditor.Android.AndroidLibraries androidLibraries)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Did u get the solution for it?

yes , just confirmed it a moment ago too.

Open the Android SDK tools. You need to uninstall build-tools 24 through 21. (Manually deleting the 24 folder - might be needed) - then install build-tools 20. (keep the 25.1.7, and other 24 stuff - its just the build-tools that’s a problem)

When you build in Unity, if it asks to Update the SDK
… don’t say OK!
… just hit Continue :slight_smile:

Thanks for the fix. I got the same error but I am able to have all of the Android SDK Build-tools installed except Rev. 24 and my build functions fine. I was wondering if anybody might know how to fix this so that the Build-tools 24 can be used.