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!