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

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

I have made a XML file:



           


        
8条回答
  •  不思量自难忘°
    2020-12-19 18:28

    From Eclipse, right click the xml file and choose Open With -> XML Editor. In this, choose the Design tab. You may notice there is a mysterious child element after your 's which is just empty. Right click on it and choose remove.

    Just spent an hour or so trying to fix this problem and this turned out to be the fix, probably some invisible characters that cause parsing to fail. Anyway, hope that helps anyone else having this problem!

提交回复
热议问题