读书人

【求解惑】ERROR Error parsing XML:

发布时间: 2012-03-28 15:40:03 作者: rapoo

【求解惑】ERROR Error parsing XML: unbound prefix
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
<Button Android:id="@+id/button0"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="abc" />
</LinearLayout>

本人初学者,以上是我的一个main.xml文件,不知道为什么总是有下面的错误提示:
- ERROR Error parsing XML: unbound prefix
- The prefix "Android" for attribute "Android:id" associated with an element type "Button" is not bound.

哪位大虾们指点一下~

[解决办法]

XML code
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  android:orientation="vertical"  android:layout_width="fill_parent"  android:layout_height="fill_parent">//此处少了“>”<Button android:id="@+id/button0"//小写怕android  android:layout_width="fill_parent"  android:layout_height="wrap_content"  android:text="abc" /></LinearLayout> 

读书人网 >Android

热点推荐