【问题标题】:xmlns:android="http://schemas.android.com/apk/res/android" this line is marked as error in Linear Layoutxmlns:android="http://schemas.android.com/apk/res/android" 这一行在线性布局中被标记为错误
【发布时间】:2013-02-23 10:31:11
【问题描述】:

在我的 XML 文件中,我创建了几个 LinearLayout,但由于某种原因,我在网上遇到了错误: xmlns:android="http://schemas.android.com/apk/res/android"。 它标有红色(错误),错误日志显示:"Unexpected namespace prefix "xmlns" found for tag LinearLayout"

有人知道这是什么意思吗?

【问题讨论】:

    标签: android xml android-linearlayout


    【解决方案1】:

    1) 仅在您拥有的最外层布局中使用它。指定一次就足够了。删除所有其他出现的它。

    Unexpected namespace prefix "xmlns" found for tag LinearLayout

    【讨论】:

      【解决方案2】:

      如果您正在使用 Eclipse,只需转到菜单上的 Project,然后 Clean...error fix :D

      【讨论】:

        猜你喜欢
        • 2011-10-30
        • 2013-05-17
        • 2013-12-07
        • 1970-01-01
        • 2016-11-04
        • 1970-01-01
        • 1970-01-01
        • 2017-09-28
        • 1970-01-01
        相关资源
        最近更新 更多