【问题标题】:Google Map is not Working in Android after downloading the apk from play store从 Play 商店下载 apk 后,Google 地图无法在 Android 中运行
【发布时间】:2018-04-25 12:46:16
【问题描述】:

大家好,我正在开发地图应用程序。我的问题是,当我创建发布版本并在我的真实设备上安装此版本时,地图正在加载,但在将相同的版本上传到 Play 商店并现在下载到我的真实设备后谷歌地图未加载出现错误

E/Google Maps Android API: Authorization failure.  Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.

04-25 18:05:27.159 10524-10703/? E/Google Maps Android API: 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: AIz~~~~~~~~~~~~~~~~~~~~~~~~~~~0
    Android Application (<cert_fingerprint>;<package_name>)

有人知道为什么我会收到此授权失败吗?我已添加 SHA1 以在 Google API's console 中发布。我也尝试了新密钥,但没有运气。我已经在 Stackoverflow 上花了 2 天,但没有运气。

【问题讨论】:

  • Google 开发者控制台中是否启用了 GoogleMaps ?
  • 是的 google map api 是启用的,这就是为什么它在上传之前就可以工作
  • @ShubhamJain 实际上我也遇到了同样的问题。看看issuetracker.google.com/issues/79405933,看看它是否与您的匹配,也请加注星标并添加任何额外信息!!!
  • 我也面临同样的问题,@shubhamJain 你解决了这个问题吗?有解决办法吗?

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


【解决方案1】:

您必须在 AndroidManifest.xml 中设置一个与您在开发期间使用的不同的新 GEO API 密钥。使用新密钥上传应用,无需在开发模式下运行,它会正常工作。

【讨论】:

  • 正如我已经提到的,我已经尝试使用新密钥,但它也无法正常工作
猜你喜欢
  • 1970-01-01
  • 2016-04-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-11-11
  • 1970-01-01
  • 2014-08-11
  • 1970-01-01
相关资源
最近更新 更多