- Home /
Failed to re-package resources even I make blank project
I dont know what's going on with my unity 5.2.4f1 . I always got this error even I started it with totally blank project like this
my setting like this
CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\Abrilianto\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/Abrilianto/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 (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.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()
Please somebody help me, really frustating T_T
@Abrilianto Close your project then delete the Library folder from your project. Open the project and your problem will resolve. :)
Hope for best!!!
Did you manage to resolve this issue? I have the exact same problem
Answer by liortal · Jul 16, 2016 at 10:52 AM
Unity is running aapt.exe from build-tools/24.0.0 ( you can see the path of aapt.exe in the log) Version 24 is for Android N (the next upcoming version Android), which is not supported by Unity at the moment ( i saw this complaint from other people recently).
Under your Android SDK folder, you should remove the 24.0.0 folder, or, in case you need that version specifically, you should upgrade to the latest Unity version (5.3.5 patch 4 i think) which may support this, but i'm not sure ..
Answer by TauseefCVS · May 13, 2016 at 08:00 AM
you can update your android sdk and then try it if its not working you can delete the all files from the temp folder. hope so its working