在Create new Android Virtual Device时不能创建。。。
因为之前有重装过系统,ADT和java都没有更换,不知道是不是有哪里的环境(C盘中的配置)出错了。。。
LOG在下面,有大虾帮忙看看的么?
1 eclipse.buildId=v22.0.1-685705 2 java.version=1.7.0_21 3 java.vendor=Oracle Corporation 4 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN 5 Framework arguments: -product com.android.ide.eclipse.adt.package.product 6 Command-line arguments: -os win32 -ws win32 -arch x86 -product com.android.ide.eclipse.adt.package.product 7 8 Error 9 Thu Mar 27 10:38:14 CST 2014 10 Unhandled event loop exception 11 12 java.lang.NoClassDefFoundError: com/android/sdklib/repository/descriptors/IdDisplay 13 at com.android.sdkuilib.internal.widgets.AvdCreationDialog.createAvd(AvdCreationDialog.java:1180) 14 at com.android.sdkuilib.internal.widgets.AvdCreationDialog.okPressed(AvdCreationDialog.java:972) 15 at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472) 16 at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) 17 at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) 18 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 19 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 20 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169) 21 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758) 22 at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) 23 at org.eclipse.jface.window.Window.open(Window.java:801) 24 at com.android.sdkuilib.internal.widgets.AvdSelector.onNew(AvdSelector.java:898) 25 at com.android.sdkuilib.internal.widgets.AvdSelector.access$100(AvdSelector.java:84) 26 at com.android.sdkuilib.internal.widgets.AvdSelector$2.widgetSelected(AvdSelector.java:272) 27 at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) 28 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 29 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 30 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169) 31 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758) 32 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053) 33 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 34 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942) 35 at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) 36 at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) 37 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 38 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) 39 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 40 at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) 41 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 42 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 43 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 44 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) 45 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 46 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 47 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 49 at java.lang.reflect.Method.invoke(Method.java:601) 50 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) 51 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) 52 at org.eclipse.equinox.launcher.Main.run(Main.java:1438) 53 Caused by: java.lang.ClassNotFoundException: com.android.sdklib.repository.descriptors.IdDisplay 54 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) 55 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) 56 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) 57 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) 58 at java.lang.ClassLoader.loadClass(ClassLoader.java:356) 59 ... 40 more
额,在ADT中不能创建AVD,但是通过cmd命令却可以创建出AVD。。。
http://stackoverflow.com/questions/22250428/can-not-create-new-avd-in-eclipse
https://code.google.com/p/android/issues/detail?id=66661
额,不懂啊。。。嗯,要去吃饭了!!!