Unexpected namespace prefix “xmlns” found for tag LinearLayout

前端 未结 7 864
离开以前
离开以前 2020-11-30 05:36

I am having an error in following xml file. \"Unexpected namespace prefix \"xmlns\" found for tag LinearLayout\". I tried the solutions provided in other similar qu

7条回答
  •  被撕碎了的回忆
    2020-11-30 05:53

    I think remove the unneeded line is a more suitable way because:

    1) Clean the Project will only resolve the problem once. And if you launch the project again or switch from another file to this xml file, it will show the error again.

    2) More importantly, "xmlns:XXX" should be the property of the first node.

提交回复
热议问题