【问题标题】:google maps android api v2 error谷歌地图 android api v2 错误
【发布时间】:2013-02-23 09:43:51
【问题描述】:

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

【问题讨论】:

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


    【解决方案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....
    

    【讨论】:

    • 我已经从 apis-console 获得了正确的 api 密钥,但它仍然无法正常工作。
    • 您是否按照所有必要的步骤进行操作..?
    【解决方案2】:

    Google maps api V1 已被弃用,请改用 maps 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

    编码愉快:)

    【讨论】:

      猜你喜欢
      • 2013-02-15
      • 2014-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-18
      相关资源
      最近更新 更多