小编dav*_*cv5的帖子

Android Studio:xmlns:地图无效

经过大量的研究,没有找到任何东西......快速的问题,有没有人知道为什么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)

android android-layout android-xml android-studio

6
推荐指数
1
解决办法
2309
查看次数