Android - Unity3D 5: CommandInvokationFailure: Failed to re-package resources [closed]

2

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 ()

    
asked by Walther Emilio Carrasco 14.06.2016 в 06:25
source

1 answer

0

First verify that JAVA is in your environment variables.

  

JAVA_HOME

     

C: \ Program Files (x86) \ Java \ jdk1.8.0_11 \ bin

Then try this:

Open the SDK Manager and delete all the SDK (preview) tools and install the last one that is not preview, apparently it is an error with the compilation tools of Android 24.0.0 preview

    
answered by 14.06.2016 в 07:05