在eclipse JUNO中创建AVD时出错

时间:2014-03-13 12:29:38

标签: android eclipse adt

我正在使用Windows XP和eclipse JUNO版本进行android编程,我有最新的SDK和ADT 22.6.0并设置为eclipse设置。但是当我从AVD管理器创建新的AVD并填写正确的细节,然后按下确定按钮然后没有任何反应,并在错误日志中给出以下错误,所以请给我建议。 如果我附加设备,那么android程序运行完美。

错误:

标题:活动详情 消息:未处理的事件循环异常

异常堆栈跟踪

java.lang.NoClassDefFoundError: com/android/sdklib/repository/descriptors/IdDisplay
    at com.android.sdkuilib.internal.widgets.AvdCreationDialog.validatePage(AvdCreationDialog.java:1027)
    at com.android.sdkuilib.internal.widgets.AvdCreationDialog.access$400(AvdCreationDialog.java:85)
    at com.android.sdkuilib.internal.widgets.AvdCreationDialog$3.widgetSelected(AvdCreationDialog.java:241)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at com.android.sdkuilib.internal.widgets.AvdSelector.onNew(AvdSelector.java:898)
    at com.android.sdkuilib.internal.widgets.AvdSelector.access$100(AvdSelector.java:84)
    at com.android.sdkuilib.internal.widgets.AvdSelector$2.widgetSelected(AvdSelector.java:272)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

2 个答案:

答案 0 :(得分:1)

这是ADT错误。因此,您必须使用命令行创建AVD启动AVD管理器。

检查我的回答是否有类似问题Cannot create emulater in AVD

答案 1 :(得分:0)

使用此模拟器而不是http://www.genymotion.com/您必须构建应用程序才能运行它,但它更快,并且可以在WinXP上运行(即使打开它,Eclipse AVD模拟器可能只会运行得太慢)。