2017-08-17 66 views
1

我創建了新的libGDX項目(Android/iOS /桌面),我嘗試運行它,但我得到了這個錯誤(我使用Java 1.8和Android API 26)。在IntelliJ中的mac上的libGDX項目android位置錯誤

Error:Internal error: (java.lang.ClassNotFoundException) com.android.prefs.AndroidLocation$AndroidLocationException 
    java.lang.ClassNotFoundException: com.android.prefs.AndroidLocation$AndroidLocationException 
     at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
     at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
     at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
     at org.jetbrains.jps.android.AndroidJpsUtil.getAndroidTarget(AndroidJpsUtil.java:404) 
     at org.jetbrains.jps.android.AndroidJpsUtil.getAndroidPlatform(AndroidJpsUtil.java:480) 
     at org.jetbrains.jps.android.builder.AndroidPreDexBuildTarget.computeRootDescriptors(AndroidPreDexBuildTarget.java:110) 
     at org.jetbrains.jps.builders.impl.BuildRootIndexImpl.addRoots(BuildRootIndexImpl.java:72) 
     at org.jetbrains.jps.builders.impl.BuildRootIndexImpl.<init>(BuildRootIndexImpl.java:62) 
     at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:84) 
     at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:267) 
     at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125) 
     at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:236) 
     at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42) 
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
     at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
     at java.lang.Thread.run(Thread.java:748) 
+0

警告 - OFFTOPIC - 真的很高興看到你stackoveflow朱塞佩... –

回答

-1

轉到URLClassLoader.java線381,看看什麼是錯的白衣該類對象使用您正在使用哪個版本IntelliJ IDEA一個該行

0

? 嘗試升級到IntelliJ IDEA 2017.2.2

更多信息:https://youtrack.jetbrains.com/issue/IDEA-176144

+0

IntelliJ IDEA的2017.2月 – Bumaza

+1

因此,升級到2017年2月2日 –

+1

修復它,但現在ai有這個錯誤 錯誤:Android Pre Dex:[gdx-1.9.6.jar] java.lang.ClassNotFoundException:com.android.dx.command.DxConsole – Bumaza