android应用中的xml问题

android应用中的xml问题,android,xml,Android,Xml,我是android新手,在我的main.xml上遇到了这个错误,有人能告诉我如何修复,以及如何防止这些错误吗 行解析XML时出错:未绑定前缀 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" androi

我是android新手,在我的
main.xml
上遇到了这个错误,有人能告诉我如何修复,以及如何防止这些错误吗

解析XML时出错:未绑定前缀

<RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <Button
        android:id="@+id/showBtn"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:text="@string/show" />

    <!-- ***error: Error parsing XML: unbound prefix*** -->
    <fragment 
        android:id="@+id/map"
        android:name="com.google.android.gms.maps.MapFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@id/showBtn"
        map:cameraTilt="30"
        map:cameraZoom="5"
        map:uiCompass="false"
        map:uiRotateGestures="true"
        map:uiTiltGestures="true"
        map:uiZoomGestures="true" />

</RelativeLayout>

xml
中使用片段

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:map="http://schemas.android.com/apk/res-auto"
  android:id="@+id/fragmentGoogleMaps"
  android:name="com.google.android.gms.maps.MapFragment"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  map:cameraZoom="17"
  map:uiCompass="false"
  map:uiRotateGestures="true"
  map:uiScrollGestures="true"
  map:uiTiltGestures="false"
  map:uiZoomControls="true"
  map:uiZoomGestures="true" />

xml
中使用片段

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:map="http://schemas.android.com/apk/res-auto"
  android:id="@+id/fragmentGoogleMaps"
  android:name="com.google.android.gms.maps.MapFragment"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  map:cameraZoom="17"
  map:uiCompass="false"
  map:uiRotateGestures="true"
  map:uiScrollGestures="true"
  map:uiTiltGestures="false"
  map:uiZoomControls="true"
  map:uiZoomGestures="true" />


remove->和它后面的所有文本好吧,我添加这一行是为了向您显示正确的行,但在我的项目中我没有这句话。添加xmlns:android=“”到fragmentremove->和它后面的所有文本好吧,我添加这一行是为了向您显示正确的行,但在我的项目中我没有这句话。添加xmlns:android=“”到fragment