Failed to re-package resources

Hi, I’m developping an Android game, and when I try to build it I find this error:

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
D:\Android\AndroidSDK\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/Android/AndroidSDK\platforms\android-24\android.jar" -F bin/resources.ap_

stderr[

]
stdout[

]

There are some posts about this same error, but I’m unable to find an answer. Does someone know why this happens?

Thanks!! ^^

Edit: I didn’t realize that there’s two different errors, here’s the second one:

CommandInvokationFailure: Failed to re-package resources. See the Console for details.
D:\Android\AndroidSDK\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/Android/AndroidSDK\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.HostView:OnGUI()

I finally was able to compile it. I erased the 24.0.0 folder inside (Android SDK install location)/build-tools. It seems to work fine now :smiley: