【问题标题】:Change google maps api key更改谷歌地图 api 密钥
【发布时间】:2018-02-22 11:50:35
【问题描述】:

我遇到了谷歌地图的问题。 应用程序已上传到商店。访问控制台的帐户也丢失了。因此,我为应用程序进行了更新,并为发布和调试版本创建了新的 api 密钥并添加了指纹。 生成的 apk 工作正常,但在我上传并发布更新后,地图无法正常工作并且控制台有日志:

In the Google Developer Console (https://console.developers.google.com                                                          Ensure that the "Google Maps Android API v2" is enabled.
                                                                                   Ensure that the following Android Key exists:
                                                                                    API Key: AIzaSyAEtaL_6qG1Fri5K3K**********
                                                                                    Android Application (<cert_fingerprint>;<package_name>): 3B:96:BB:F4:9D:13:86:C8:2:******

我忘了做什么,更正更改 api 密钥?如何解决?

【问题讨论】:

  • 你是enable Google Maps Android API吗?
  • @gar_r 当然,我启用它。

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


【解决方案1】:

经过几次观察和实验。我找到了原因。 我正在使用 android studio 工具生成 apk。 动脉删除

签名配置

我的应用程序模块的 build.gradle 部分,它开始工作。也许对某人有用。谢谢。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-30
    • 2013-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-20
    相关资源
    最近更新 更多