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無法解決問題。 任何想法?
您可以嘗試刪除工作區.metadata目錄並重新導入所有項目。 – Sam
您似乎在類路徑中缺少類。你的項目中是否有類com.android.archquery.Main?它有任何錯誤嗎?它是否在項目類路徑上? – andr
我認爲這與我的項目或工作區.metadata目錄無關。我嘗試使用終端啓動Android SDK Manager,並且我得到了相同的異常。 – Carsten