谷歌地图android api v2错误

时间:2013-02-23 09:43:52

标签: android google-maps google-maps-android-api-2

我正在开发一款应用。在SDK 17上涉及谷歌地图,但问题是,当我使用谷歌地图v1 api密钥时,地图工作正常,但当我尝试使用谷歌地图android V2 api密钥不显示任何内容(仅显示谷歌地图图块)。我已经包含了谷歌播放服务库并搜索了所有可能的原因但找不到。请帮忙!

2 个答案:

答案 0 :(得分:1)

1)转到Google API控制台https://code.google.com/apis/console/#project:650847076763

2)In Services enable ‘Google Maps Android API v2’ and agree to the terms
3)In the left navigation bar, click API Access.
4)Click Create New Android Key....

答案 1 :(得分:0)

谷歌地图api V1已被弃用,而是使用地图api V2。

文档页面: https://developers.google.com/maps/documentation/android/

以下是快速入门指南: https://docs.google.com/document/d/19xKLZTrY1l6Sgu-V_IVSDIRZrcThjwxDrlm9rNr0tzo/edit

如果您遇到MapFragment或Google Play服务库的问题,请访问此主题,它会对您有所帮助。 https://docs.google.com/document/d/19xKLZTrY1l6Sgu-V_IVSDIRZrcThjwxDrlm9rNr0tzo/edit

我也回答了你在这里遇到的相关问题。 How to/Error in declaring google-play-services-component

快乐编码:)