- Home /
Failed to compile Java code to DEX; Invalid command dx
Unity: v4.0.0f7; java: v8, 60 (build 1.8.0_60-b27); Asdk: r22.
I've Just added admob plugin to my project, and now getting this weird error. After few hours of googling ive tryed to roll back my Asdk to r21, but it automaticly updates to r22.
Full error code:
Failed to compile Java code to DEX:
D:\ModFolder\!sorting\Sorting\Temp/StagingArea> dx --dex --verbose --output=bin/classes.dex bin/classes.jar plugins
Invalid command 'dx'
Picked up _JAVA_OPTIONS: -Xmx2048m
UnityEngine.Debug:LogError(Object)
PostProcessAndroidPlayer:BuildDex(String, String) (at C:/BuildAgent/work/812c4f5049264fad/Editor/Mono/BuildPipeline/PostProcessAndroidPlayer.cs:546)
PostProcessAndroidPlayer:PostProcess(BuildTarget, String, String, String, String, String, String, BuildOptions) (at C:/BuildAgent/work/812c4f5049264fad/Editor/Mono/BuildPipeline/PostProcessAndroidPlayer.cs:255)
UnityEditor.HostView:OnGUI()
Comment
Your answer
Follow this Question
Related Questions
enable multidex for android build 2 Answers
Compiler error while switching to android 1 Answer
Moving file failed 0 Answers
why the application is opaque in android? 0 Answers
Unity force stop build to Android 2 Answers