Error parsing XML:unbound prefix

XML:

<?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"
    >
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    />    
<Button Android:id="@+id/start_service" Android:layout_width="fill_parent"
Android:layout_height="wrap_content" Android:text="Start Service" />

</LinearLayout>

I was crazy because i could't find out the root cause. That's because the word "Android" should be lowercase.

 

<Button android:id="@+id/start_service" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="Start Service" />

</LinearLayout>

posted @ 2011-01-21 12:52  Lorcan.Luo  阅读(787)  评论(0编辑  收藏  举报