Android / Eclipse / Premature end of xml file

前端 未结 9 500
情深已故
情深已故 2021-01-18 05:06

Let me start by acknowledging that I did find a similar question on here but there was only one answer and that answer did not apply in my situation, so...

I am just

相关标签:
9条回答
  • 2021-01-18 05:33

    You might look at this answer.

    That person's problem was that the file was not created as an XML file, from Eclipse's point of view. Try File > New > Other... / select XML.

    0 讨论(0)
  • 2021-01-18 05:35

    I just removed this line

    <?xml version="1.0" encoding="utf-8"?>
    

    Saved, built, then re-added it again and it was fine

    0 讨论(0)
  • 2021-01-18 05:36

    You need to keep the new xml file in res/layout folder....and done... thanks

    0 讨论(0)
提交回复
热议问题