2013-01-19 62 views
1

當我嘗試啓動在Eclipse(和控制檯)在Android SDK管理器中我得到這個異常開始在Eclipse Android SDK中經理拋出一個異常

[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] Exception in thread "main" java.lang.NoClassDefFoundError: com/android/archquery/Main 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] Caused by: java.lang.ClassNotFoundException: com.android.archquery.Main 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.security.AccessController.doPrivileged(Native Method) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] Exception in thread "main" java.lang.NoClassDefFoundError: com/android/archquery/Main 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] Caused by: java.lang.ClassNotFoundException: com.android.archquery.Main 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.security.AccessController.doPrivileged(Native Method) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 
[2013-01-19 22:43:48 - SDK Manager] [SDK Manager] Exception in thread "Thread-1" java.lang.NoClassDefFoundError: com/android/sdkmanager/Main 
[2013-01-19 22:43:48 - SDK Manager] [SDK Manager] Caused by: java.lang.ClassNotFoundException: com.android.sdkmanager.Main 
[2013-01-19 22:43:48 - SDK Manager] [SDK Manager] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 
[2013-01-19 22:43:48 - SDK Manager] [SDK Manager] at java.security.AccessController.doPrivileged(Native Method) 
[2013-01-19 22:43:48 - SDK Manager] [SDK Manager] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 
[2013-01-19 22:43:48 - SDK Manager] [SDK Manager] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 
[2013-01-19 22:43:48 - SDK Manager] [SDK Manager] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
[2013-01-19 22:43:48 - SDK Manager] [SDK Manager] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 

我不知道什麼原因造成的,但重新安裝的Eclipse和adt插件以及下載新版本的SDK無法解決問題。 任何想法?

+0

您可以嘗試刪除工作區.metadata目錄並重新導入所有項目。 – Sam

+0

您似乎在類路徑中缺少類。你的項目中是否有類com.android.archquery.Main?它有任何錯誤嗎?它是否在項目類路徑上? – andr

+0

我認爲這與我的項目或工作區.metadata目錄無關。我嘗試使用終端啓動Android SDK Manager,並且我得到了相同的異常。 – Carsten

回答

0

確定一切正常工作正常(和Android SDK管理器開始正常)。 我嘗試過: 我下載了SDK Tools only軟件包,並嘗試通過終端啓動sdk Manager。一切都很好。然後移到我的文件夾中,它不起作用。事實證明,該錯誤是由文件夾名稱中的斜線引起的。真的很奇怪,很難找到。 希望它有幫助

相關問題