我正在尝试在 Unity 中构建一个 android 项目,但收到此错误:
Failed to compile Java code to DEX:
C:\Users\tziuka-pc\Desktop\project teo\Temp/StagingArea> java -Xmx1024M -Djava.ext.dirs="C:/Users/tziuka-pc/Desktop/dev2/android-sdk-windows\platform-tools/lib/" -jar "C:/Users/tziuka-pc/Desktop/dev2/android-sdk-windows\platform-tools/lib/dx.jar" --dex --verbose --output=bin/classes.dex bin/classes.jar plugins
Error: Unable to access jarfile C:/Users/tziuka-pc/Desktop/dev2/android-sdk-windows\platform-tools/lib/dx.jar
UnityEngine.Debug:LogError(Object)
PostProcessAndroidPlayer:BuildDex(String, String) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/BuildPipeline/PostProcessAndroidPlayer.cs:634)
PostProcessAndroidPlayer:PostProcess(BuildTarget, String, String, String, String, String, String, BuildOptions) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/BuildPipeline/PostProcessAndroidPlayer.cs:249)
UnityEditor.HostView:OnGUI()
我还为 Admob 使用了一个插件。当我删除这个插件时,一切顺利。我怎样才能解决这个问题?