Android Studio:xmlns:地图无效

dav*_*cv5 6 android android-layout android-xml android-studio

经过大量的研究,没有找到任何东西......快速的问题,有没有人知道为什么Android Studio没有采用Map标签?下面的代码是SDK中的maps示例的一个片段.已添加谷歌播放服务lib和支持,但没有.

它显示错误

Unexpected namespace prefix "map" found for tag fragment.
Run Code Online (Sandbox Code Playgroud)

非常感谢提前!

<fragment
    xmlns:map="http://schemas.android.com/apk/res-auto"
    android:id="@+id/map"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    class="com.google.android.gms.maps.SupportMapFragment"
    map:cameraZoom="10" />
Run Code Online (Sandbox Code Playgroud)

Ken*_*ent 0

我也有这个问题。我执行了 Project/Clean,错误消失了,现在工作正常。这假设映射名称空间在其使用位置上方已正确定义。