Error while opening the Eclipse Android Layout Editor

后端 未结 2 474
既然无缘
既然无缘 2021-01-04 06:44

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

Unhandled event loop exception

    ja         


        
相关标签:
2条回答
  • 2021-01-04 07:12

    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.

    0 讨论(0)
  • 2021-01-04 07:22

    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>
    
    0 讨论(0)
提交回复
热议问题