我正在使用版本:Luna Release(4.4.0)Build ID:20140612-0600 with ADT Version:23.0.2.1259578。
我正在开发一个Android项目,每当我尝试通过在Package Explorer中右键单击我的项目来创建一个新的测试项目 - > Android工具 - >新测试项目...我得到一个&#34 ;未处理的事件循环异常"没有任何反应。
我尝试使用File-> New-> Other-> Android Test Project创建一个新的测试项目,我设法得到的只是一个没有任何内容的空测试项目。我怀疑用这种方式创建的项目是否正常。
我在Google上搜索了我的问题的解决方案,但我无法找到与之相关的任何内容。
我试图从eclipse中删除项目并再次导入它们,关闭eclipse,删除工作区并再次创建。似乎没什么用。
以下是从eclipse导出的错误日志:
!ENTRY com.android.ide.eclipse.adt 1 0 2014-07-23 23:59:53.225
!MESSAGE NPW ignoring malformed manifest C:\Program Files (x86)\Android\android-sdk\samples\android-20\connectivity\CardReader\CardReaderSample\tests\AndroidManifest.xml
!ENTRY com.android.ide.eclipse.adt 1 0 2014-07-23 23:59:53.310
!MESSAGE NPW ignoring malformed manifest C:\Program Files (x86)\Android\android-sdk\samples\android-20\media\MediaRouter\MediaRouterSample\tests\AndroidManifest.xml
!ENTRY com.android.ide.eclipse.adt 1 0 2014-07-23 23:59:53.360
!MESSAGE NPW ignoring malformed manifest C:\Program Files (x86)\Android\android-sdk\samples\android-20\ui\DisplayingBitmaps\DisplayingBitmapsSample\tests\AndroidManifest.xml
!ENTRY com.android.ide.eclipse.adt 1 0 2014-07-23 23:59:53.377
!MESSAGE NPW ignoring malformed manifest C:\Program Files (x86)\Android\android-sdk\samples\android-20\ui\SlidingTabsBasic\SlidingTabsBasicSample\tests\AndroidManifest.xml
!ENTRY com.android.ide.eclipse.adt 1 0 2014-07-23 23:59:53.384
!MESSAGE NPW ignoring malformed manifest C:\Program Files (x86)\Android\android-sdk\samples\android-20\ui\SwipeRefreshLayoutBasic\SwipeRefreshLayoutBasicSample\tests\AndroidManifest.xml
!ENTRY com.android.ide.eclipse.adt 1 0 2014-07-23 23:59:53.390
!MESSAGE NPW ignoring malformed manifest C:\Program Files (x86)\Android\android-sdk\samples\android-20\ui\SwipeRefreshListFragment\SwipeRefreshListFragmentSample\tests\AndroidManifest.xml
!ENTRY com.android.ide.eclipse.adt 1 0 2014-07-23 23:59:53.394
!MESSAGE NPW ignoring malformed manifest C:\Program Files (x86)\Android\android-sdk\samples\android-20\ui\SwipeRefreshMultipleViews\SwipeRefreshMultipleViewsSample\tests\AndroidManifest.xml
!ENTRY org.eclipse.ui 4 0 2014-07-23 23:59:53.447
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at java.lang.String.replace(Unknown Source)
at com.android.sdklib.repository.descriptors.PkgDesc.patternReplaceImpl(PkgDesc.java:564)
at com.android.sdklib.repository.descriptors.PkgDesc.getListDescription(PkgDesc.java:543)
at com.android.sdklib.repository.local.LocalPkgInfo.getListDescription(LocalPkgInfo.java:244)
at com.android.sdklib.SdkManager.getExtraSamples(SdkManager.java:309)
at com.android.ide.eclipse.adt.internal.wizards.newproject.SdkSelectionPage.loadSamplesForTarget(SdkSelectionPage.java:221)
at com.android.ide.eclipse.adt.internal.wizards.newproject.SdkSelectionPage.onSdkTargetModified(SdkSelectionPage.java:192)
at com.android.ide.eclipse.adt.internal.wizards.newproject.SdkSelectionPage.onSdkLoaded(SdkSelectionPage.java:471)
at com.android.ide.eclipse.adt.internal.wizards.newproject.SdkSelectionPage.createControl(SdkSelectionPage.java:107)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:178)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:759)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:622)
at org.eclipse.jface.window.Window.create(Window.java:435)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101)
at com.android.ide.eclipse.adt.internal.wizards.actions.OpenWizardAction.run(OpenWizardAction.java:142)
at com.android.ide.eclipse.adt.internal.wizards.actions.NewTestProjectAction.run(NewTestProjectAction.java:1)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:253)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
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:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)