Valid XML file gives “failed to parse” error in Android ADT

前端 未结 8 1595
执笔经年
执笔经年 2020-12-19 18:08

I have made a XML file:



           


        
8条回答
  •  生来不讨喜
    2020-12-19 18:42

    I'm not sure it's the same, but Similar issue happened to me when updating to ADT 15, in a library project. this is the google issue that currently still opened: 21046.

    That's what worked for me:

    1. Remove the library declaration of the project.
    2. Open the layout causing the error (the one which using the selector) in graphical layout.
    3. Clean the project (Project -> Clean)
    4. Close and reopen eclipse. (the layout should be ok now)
    5. You can set the project as library again.

    Hope this helps! (if it's still relevant...)

提交回复
热议问题