3
我正在使用Eclipse上的ADT(版本22.6.3)來解決這個奇怪的問題:在幾次幸運運行之後,當我嘗試打開一個XML文件時,它顯示一個空的非可編輯的空白文件。 我已經嘗試了一切,從重新設置/重新安裝所有插件到在新的新工作區上使用新安裝的Eclipse,問題依然存在。Android ADT插件無法在Eclipse上打開XML文件
這是從Eclipse日誌中的錯誤:
Caused by: java.lang.NoSuchFieldError: ACTION_BAR
at com.android.layoutlib.bridge.Bridge.init(Bridge.java:206)
at com.android.ide.common.rendering.LayoutLibrary.init(LayoutLibrary.java:297)
at com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData.getLayoutLibrary(AndroidTargetData.java:327)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.updateCapabilities(GraphicalEditorPart.java:1202)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.onTargetChange(GraphicalEditorPart.java:1194)
at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate.onDescriptorsChanged(LayoutEditorDelegate.java:916)
at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate.delegateInitUiRootNode(LayoutEditorDelegate.java:835)
at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate.delegateXmlModelChanged(LayoutEditorDelegate.java:393)
at com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor.xmlModelChanged(CommonXmlEditor.java:329)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor$XmlModelStateListener.modelChanged(AndroidXmlEditor.java:1653)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.createTextEditor(AndroidXmlEditor.java:835)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.createAndroidPages(AndroidXmlEditor.java:320)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.addPages(AndroidXmlEditor.java:310)
at com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor.addPages(CommonXmlEditor.java:285)
at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:358)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:142)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:323)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
... 83 more
我是唯一一個有這個問題?任何建議表示讚賞;)
更改應用程序主題對我來說沒有什麼竅門! – BJC