为什么小弟我的这段android .xml文件会报错

为什么我的这段android .xml文件会报错

报错::Unexpected namespace prefix "xmlns" found for tag LinearLayout



<?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">

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_marginLeft="20dp"
android:layout_marginRight="20dp">
<TextView android:layout_width="wrap_content" android:text="用户名:"
android:textSize="20dp" android:layout_height="wrap_content" />
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_marginLeft="20dp"
android:layout_marginRight="20dp">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="密    码:"
android:textSize="20dp" />
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content" android:password="true" />
</LinearLayout>

</LinearLayout>
android

------解决方案--------------------
我这个新手也刚刚碰到这个问题,然后我发现是格式问题,就是你把上下的代码对齐了就没有问题了,你试试下面这个改了格式的看看吧:
<?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">
   <LinearLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal" 
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" 
      android:layout_marginLeft="20dp"
      android:layout_marginRight="20dp">
      <TextView 
         android:layout_width="wrap_content" 
         android:text="用户名:"
         android:textSize="20dp" 
         android:layout_height="wrap_content" />
      <EditText 
         android:layout_width="fill_parent"
         android:layout_height="wrap_content" />
   </LinearLayout>
   <LinearLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal" 
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_marginLeft="20dp"