hi…
I am trying to build my scene. I first thought its got to do with the current project, Ive tried creating new projects and get the same error each time I try to build, even with one scene. getting these 5 errors in console. I have spent hours reading different answers and I dont understand what to do, or how to know if I have any duplicate plugins . I am trying to build for Android platform, installed android sdk, Min API level (android 7.0 Nougat) , VR Supported for Daydream, as thats the headset I have to build for, and i am using Version 2018.2.9f1
Would appreciate some help here. please let me know if any more details are needed.
1.
Error:Invalid command dx
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
- CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files (x86)/Java/jdk1.8.0_171\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir=“C:/Users/juhus_000/AppData/Local/Android/Sdk ools” -Dfile.encoding=UTF8 -jar “C:\Program Files\2018.2.9f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -
stderr[
Error:Invalid command dx
]
stdout[
]
exit code: 64
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
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.RunCommand (System.String javaExe, System.String sdkToolsDir, System.String sdkToolCommand, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg, Int32 memoryMB)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Build completed with a result of ‘Failed’
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:187
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
IndexOutOfRangeException: Array index is out of range.
UnityEditor.Android.AndroidBuildWindowExtension.GetBuildPlayerWindow ()
UnityEditor.Android.AndroidBuildWindowExtension.RepaintTargetList ()
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:191)