在我的 XML 文件中,我制作了一些 LinearLayout
,但出于某种原因,我在线上遇到错误:
xmlns:android="http://schemas.android.com/apk/res/android"
。
它标有红色(错误)并且错误日志显示:“Unexpected namespace prefix "xmlns"found for tag LinearLayout"
有人知道这是什么意思吗?
最佳答案
1) 仅在您拥有的最外层布局中使用它。指定一次就足够了。删除它的所有其他实例。
参见 Unexpected namespace prefix "xmlns" found for tag LinearLayout
关于android - xmlns :android ="http://schemas.android.com/apk/res/android" this line is marked as error in Linear Layout,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15039495/