- Home /
Unity 5.5.1f1 Android "Error Building Player"
Hi all,
I recently finished an old project and am presented with these two errors upon building my game:
Win32Exception: ApplicationName='C:/Program Files/Java/jdk1.8.0_191\bin\java.exe', CommandLine='-Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Android/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -', CurrentDirectory='C:\Users\MyUsername\Documents\Barrel Bros' System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start () (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:33) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.UpdateToolsDirectories () UnityEditor.Android.AndroidSDKTools..ctor (System.String sdkRoot) UnityEditor.Android.AndroidSDKTools.GetInstance () UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSdk.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (BuildOptions options, BuildTarget target) UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (BuildOptions options, BuildTarget target) UnityEditor.PostprocessBuildPlayer.PrepareForBuild (BuildOptions options, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:98) UnityEditor.HostView:OnGUI()
Error 02:
Error building Player: Win32Exception: ApplicationName='C:/Program Files/Java/jdk1.8.0_191\bin\java.exe', CommandLine='-Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Android/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -', CurrentDirectory='C:\Users\MyUsername\Documents\Barrel Bros'
I've installed all different versions of SDK/JDK with countless tutorials and out of all the solutions, the current SDK/JDK setup I have configured has the least errors (the ones above). Please help asap!
I followed the SD$$anonymous$$ installation in this video: https://www.youtube.com/watch?v=ojt7ITyklGk
Your answer
Follow this Question
Related Questions
What does this error even mean? 1 Answer
Android Build Failed @icon=@mipmap/app_icon 0 Answers
Android Build Error 1 Answer
Android SDK does not include error 1 Answer
Android build problem! 1 Answer