Failed to create the part's controls

10,756

Solution 1

I found one way to resolve this. My eclipse recently crashed (and wouldn't start again) for an unrelated reason. To get it to start again I deleted most of the files in ${workspace}/.metadata/.plugins. These files regenerate (but will wipe some of your saved plugins and settings). Resolved my startup problem and my xml editor problem.

Solution 2

Just close all the xml files and restart your Eclipse SDK

Share:
10,756
Johnny Z
Author by

Johnny Z

Updated on June 20, 2022

Comments

  • Johnny Z
    Johnny Z almost 2 years

    I get a null pointer exception opening about half of the android XML files in my layout directory. There seems to be no pattern to why some files open and some files don't.

    I upgraded eclipse to Juno. Re-installed all the plugins (ADT), re-installed the android SDK. I brought in my old workspace and adjusted my projects to point at the new android SDK.

    Stack

    java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.setLocaleCombo(ConfigurationComposite.java:1566) at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.syncRenderState(ConfigurationComposite.java:3049) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.activated(GraphicalEditorPart.java:1158) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate.delegatePageChange(LayoutEditorDelegate.java:679) at com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor.pageChange(CommonXmlEditor.java:359) at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1081) at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607)

  • Pavel Jiri Strnad
    Pavel Jiri Strnad about 10 years
    I would just recomend to rename the .plugins folder. There are lot of settings that you may don't want to loose...