- Home /
Can't build for android - Faild to re-package resources
Hello! I've encountered many problems while trying to make building apk-s possible in Unity3d, but this one consumed a lot of my time. Every time I try to build an apk I get this error:
CommandInvokationFailure: Failed to re-package resources.
C:\Users\Olaf\AppData\Local\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:/Users/Olaf/AppData/Local/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.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg)
UnityEditor.Android.PostProcessor.Tasks.BuildResources.CompileResources (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.Tasks.BuildResources.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.HostView:OnGUI()
I've been trying to use many different solutions that I found on Internet, but nothing seems to work for me. Or maybe I'm doing something wrong? I would be thankful for any advice. I thank you very much in advance for any help!
Answer by aditya · Aug 26, 2016 at 05:18 AM
Bring back your SDK version from 24 to 23
Thank you, it worked :) I wouldn't think it will be that easy.
Your answer
Follow this Question
Related Questions
Error Building Play Android > Unity 3d v4.6.9 0 Answers
The game freezes after a splash screen 0 Answers
Why did my unity project cannot be saved as apk? 0 Answers
Error Build APK (aapt.exe) 0 Answers
"UriFormatException: Absolute URI is too short" - Error prevents me from building my project 1 Answer