【发布时间】:2016-03-01 07:38:45
【问题描述】:
在我的代码中,我试图获取地图上的当前位置及其纬度和经度。但是在运行代码时,我得到了当前位置的纬度和经度,但无法在 Eclipse 中渲染地图。并且出现以下错误每次都会生成。虽然我也生成了 API 密钥。
11-27 12:09:47.910: E/b(31763): Authentication failed on the server.
11-27 12:09:47.910: E/Google Maps Android API(31763): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
11-27 12:09:47.930: E/Google Maps Android API(31763): In the Google Developer Console (https://console.developers.google.com)
11-27 12:09:47.930: E/Google Maps Android API(31763): Ensure that the "Google Maps Android API v2" is enabled.
11-27 12:09:47.930: E/Google Maps Android API(31763): Ensure that the following Android Key exists:
11-27 12:09:47.930: E/Google Maps Android API(31763): API Key: AIzaSyBRkcj0dLxxhmjAC6W6TaCoxFo3vCTHQYI
11-27 12:09:47.930: E/Google Maps Android API(31763): Android Application (<cert_fingerprint>;<package_name>): C9:40:D9:B6:BD:13:27:8A:98:38:29:FD:EA:AC:AF:48:AB:86:FA:E6;com.example.gpstracker
【问题讨论】:
-
您是否尝试过卸载并安装您的应用程序?有时它会起作用
-
是的,我试过了,但没用。
-
Google 控制台上的 API 密钥怎么样,再次交叉检查并确认一切正常
-
API 密钥也正确
标签: android eclipse google-maps