我正在尝试使用google map api v1在我的应用中显示谷歌地图。我在manifest.xml中添加了所需的权限和库
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-library android:name="com.google.android.maps" />
并在地图布局中设置API_KEY。
请说明我的错误。
答案 0 :(得分:0)
Note: Version 1 of the Google Maps Android API has been officially deprecated as of December 3rd, 2012. This means that from March 18th, 2013 you will no longer be able to request an API key for this version. No new features will be added to Google Maps Android API v1. However, apps using v1 will continue to work on devices. Existing and new developers are encouraged to use
Google Maps Android API v2
答案 1 :(得分:0)
是的,Google地图API v1已弃用,请尝试在Google map API v2中实施
答案 2 :(得分:0)
Google地图API v1已弃用,请实施Google地图API v2.但您尚未包含元标记
在<metadata>
标记
<application>
标记
代表
<meta-data
android:name="com.google.android.maps.v1.API_KEY"
android:value="your API KEY"/>
希望这有帮助。!
答案 3 :(得分:0)
我已经通过从API V1切换到API V2解决了这个问题。