【发布时间】:2015-07-05 10:23:44
【问题描述】:
我正在尝试向我的清单添加一些属性来初始化我的谷歌地图,但我收到了这个错误:
属性缺少 Android 命名空间前缀
我该如何解决?
代码:
<?xml version="1.0" encoding="utf-8" ?>
<fragment 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:id="@+id/map"
tools:context=".MapsActivity"
android:name="com.google.android.gms.maps.SupportMapFragment"
map:cameraTargetLat = "63.868913"
map:cameraTargetLng= "14.665491"
map:cameraZoom="15"/>
【问题讨论】:
-
map:cameraTargetLat 地图代表什么?那是错误
-
我正在制作这个视频教程,它站在那里youtube.com/… 分钟 2:45 ??
-
但他在 0:53 添加了 xmlns:map="schemas.android.com/apk/res-auto"
标签: android google-maps android-fragments