错误:“属性缺少android命名空间前缀”,

时间:2013-06-24 18:34:52

标签: android xml

我刚刚开始学习android并且下面的代码似乎是正确的但我收到了错误。请帮忙。

<TextView 
android:id="@+id/intro"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Enter some text:"
/>

1 个答案:

答案 0 :(得分:8)

确保您已将xmlns:android="http://schemas.android.com/apk/res/android"添加到第一个XML元素(<xml>标记之后)。

相关问题