- Home /
Failed to re-package resources
Hey guys,
i hope someone can help me. I searched alot and i found many sugsetions of how to solve this problem, but nothing worked for me. Maybe someone of you knows how to solve my problem.
Here is my problem:
I want to make an Android-Game, but it fails when i try to build it. Following error appears: Failed to re-package resources. See the Console for details.
I get two error-messages in the Console:
CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\User\AppData\Local\Android\sdk\build-tools\24.0.0-preview\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/User/AppData/Local/Android/sdk\platforms\android-23\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()
AND
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\User\AppData\Local\Android\sdk\build-tools\24.0.0-preview\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/User/AppData/Local/Android/sdk\platforms\android-23\android.jar" -F bin/resources.ap_
stderr[
]
stdout[
]
I hope somebody can help me! :)
Answer by MiguelMizzi94 · Apr 22, 2016 at 12:35 PM
Had the same problem, got it fixed thanks to this guy. Answer in link below :
http://answers.unity3d.com/questions/1154672/can-someone-please-help-1.html
Answer by carpetres · Oct 13, 2017 at 04:31 PM
In my case it was fixed when I went to Playersettings>Icon>enable android banner (Check it true) Hope it Helps!
Answer by unity_5vV6K89v6pLIlg · Jan 05, 2018 at 06:14 AM
check your plugin/android folder you may have some duplicate files with different version like : play-services-ads-lite-9.2.1 , play-services-ads-lite-10.2.1. delete one of them , it worked fine.