谷歌地图API授权失败

时间:2014-04-19 20:53:46

标签: android google-maps

我无法连接到Google MAP API并不断收到此错误:

Authorization failure.  Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
Ensure that the following correspond to what is in the API Console: Package Name:, API Key: AIzasDDWrwnmz8QWHp-O9ywE7uavUOF7Yrk0SJM, Certificate Fingerprint: 09CF42213E0E2C4C7C8D790B……..
Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).

我确定了以下内容:

  • 我的Android清单中的密钥与Google中的密钥正确匹配 API控制台。
  • SHA1指纹也被证实是正确的。
  • 我的手机中未展开的应用,清理了项目并重新部署。

但我仍然收到此错误。

以前这个工作正常,直到我在我的电脑上重新安装了Windows并在手机上刷了一个新的ROM,这可能是因为这两个吗?

1 个答案:

答案 0 :(得分:0)

您必须从备份还原密钥库。如果无法恢复密钥库,则必须生成新的sha1指纹并将其添加到开发人员控制台。