【问题标题】:Attribute is missing the android namespace prefix, can't find error属性缺少 android 命名空间前缀,找不到错误
【发布时间】:2014-09-10 21:14:06
【问题描述】:
<linearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFCCCCCC"
android:orientation="vertical"
tools:context=".MainDrawingActivity" >

</linearLayout>

我无法弄清楚缺少什么...请帮忙?

【问题讨论】:

    标签: android xml namespaces


    【解决方案1】:

    它是线性布局,而不是线性布局。将 L 大写。

    【讨论】:

    • 啊,现在我有点不好意思了……谢谢!
    • 使用像 Android Studio 这样的 IDE,它会自动完成这样的事情。
    • 我正在使用带有android插件的eclipse,因为这是google推荐的,您对此有何看法?
    • Android 开发正在转向 Android Studio,我建议使用它。 developer.android.com/sdk/installing/studio.html
    猜你喜欢
    • 1970-01-01
    • 2013-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-20
    • 2011-09-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多