我正在使用Eclipse indigo(3.7)。在我的android项目中,XML文件没有在图形布局中打开
相同的XML在Eclipse Galileo(3.5)
中打开我尝试右击 - > Openwith-> Android布局编辑器也无效
请任何人帮助我
产生以下错误“加载编辑器时出错”
我的日志cat文件是
显示java.lang.NullPointerException 在com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.onXmlModelLoaded(ConfigurationComposite.java:689) 在com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.onTargetChange(GraphicalEditorPart.java:976) 在com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.onDescriptorsChanged(LayoutEditor.java:583) 在com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.initUiRootNode(LayoutEditor.java:505) 在com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.xmlModelChanged(LayoutEditor.java:324) 在com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor $ XmlModelStateListener.modelChanged(AndroidXmlEditor.java:1511) 在com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.createTextEditor(AndroidXmlEditor.java:765) 在com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.createAndroidPages(AndroidXmlEditor.java:295) 在com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.addPages(AndroidXmlEditor.java:285) 在org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138) 在org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348) 在org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) 在org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) 在org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) 在org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) 在org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) 在org.eclipse.ui.internal.WorkbenchPage.access $ 11(WorkbenchPage.java:2842) 在org.eclipse.ui.internal.WorkbenchPage $ 10.run(WorkbenchPage.java:2793) 在org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) 在org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) 在org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:331) at org.eclipse.ui.actions.OpenWithMenu $ 2.handleEvent(OpenWithMenu.java:179) 在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) 在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) 在org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) 在org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) 在org.eclipse.ui.internal.Workbench.access $ 4(Workbench.java:2494) 在org.eclipse.ui.internal.Workbench $ 7.run(Workbench.java:674) 在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) 在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 在org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 在org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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) 在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) 在org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 在org.eclipse.equinox.launcher.Main.run(Main.java:1410)