At the moment of giving the build button in unity3d 5, the normal process begins, and in the middle it throws the error. This is what the console says:
CommandInvokationFailure: Failed to re-package resources. C: \ Users \ Walther \ 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 / Walther / 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.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 ()