我已经完成了以下步骤来尝试让Google Maps Android API工作: 1)启用“Google Maps Android API”2)获取我的生产和调试密钥库的SHA1指纹。调试密钥库通常位于/Users/myusername/.android/debug.keystore目录中。3)在谷歌开发人员控制台中,使用-> API& auth ->凭证。我已经为Android应用程序创建了一个新的密钥,并为我的调试和发布证书添加了证书、SHA1指纹和包名称。4)最后,我在maps_api_key参数中添加了接口密钥。但我还是看不到地图。我还能错过什么呢?
谢谢你的帮忙
这是我收到的错误信息:
01-07 11:34:03.928 2513-4480/com.app.name E/b: Authentication failed on the server. 01-07 11:34:03.928 2513-4480/com.app.name E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map. 01-07 11:34:03.958 2513-4480/com.app.name 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: AIzaSyD7dCGyDaJlmpmu-vWglqxGwqHnqXXx9xx Android Application (<cert_fingerprint>;<package_name>): 90:20:70:19:C8:D9:7E:30:4C:54:73:50:B8:DE:10:BB:93:00:86:66;com.app.name
发布于 2016-01-16 02:28:40
是的,它确实可以在发布模式下工作。你唯一需要做的就是从发布的密钥库中生成一个指纹,而不是默认的调试密钥库。
https://stackoverflow.com/questions/34816786
复制相似问题