Error while opening the Eclipse Android Layout Editor

Since yesterday everytime I open my layout Editor in Eclipse for the Android UI I get the following exception:

Unhandled event loop exception

  • How to define a new Charset in Java/Android?
  • Run Button is Disabled in Android Studio
  • Android ScrollView Scrollbar Size
  • Controlling the color of the fading edge in ListViews
  • Confused about testCompile and androidTestCompile in Android Gradle
  • how to know which phone support which layout(hdpi , mdpi and xhpi)?
  •     java.lang.StackOverflowError
        at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.isTheme(Unknown Source)
        at 
        com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.isTheme(Unknown Source)
        at... 
    

    the last part goes on and on as expected if an Stackoverflow Exception occurs.

    Anybody else experiencing this and found a solution?
    I’m working with the latests android sdk on Mac OS X with Eclipse 3.5.2

    I just installed the Carbon Version of eclipse and I get this error even in this fresh copy of eclipse.

    Very strange that I’m the only one experiencing this error. Maybe it is not an Eclipse problem but an problem of my project setup…

    Related posts:

    What is the best way to implement many-to-many relationships using ORMLite?
    how to disable recycler view scrolling so that it listens to Scrollview layout?
    Set default selected item of ListView Alert Dialog in Android
    How do I change color of icon of the selected tab of TabLayout?
    Padding lost using <merge> tag with Custom Compound Component
    Creating notification from InstrumentationTestCase
  • How can I get the default divider?
  • Copy text from Android AlertDialog?
  • Clear Activity Stack and start new activity in android
  • Android Generic User Agent (UA)
  • Get friend list facebook 3.0
  • How to stop Handler in Android
  • 2 Solutions collect form web for “Error while opening the Eclipse Android Layout Editor”

    The same thing happened to me, and I had to dig a lot before I found a solution. In my styles.xml I had an entry where the name and parent attributes were identical:

    <style name="MyHeader" parent="MyHeader">
        <item name="android:background">@drawable/header_background</item>
    </style>
    

    By removing the parent attribute the layout editor finally worked again:

    <style name="MyHeader">
        <item name="android:background">@drawable/header_background</item>
    </style>
    

    I have not had that particular error, but I have had various project corruption problems related to resources. Sometimes cleaning the project and rebuilding fixes it. Sometimes I have had to revert some project files in subversion. Sometimes just relaunching eclipse fixes things. There is also a Fix Project Properties item in the Android Tools of the context menu that has helped once or twice.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.