gpt4 book ai didi

Android Google Map V2 身份验证问题

转载 作者:行者123 更新时间:2023-11-30 01:50:12 25 4
gpt4 key购买 nike

我正在处理 Google Map V2。我在 Google Developer Console 上创建了 API key ,我还启用了 Google Maps Android API。将该 API key 集成到我的应用程序中。但是每当我在 map View 上运行应用程序时,它都会显示以下错误。

我通过 debug.keystore 创建了 SHA-1 证书指纹我正在研究 Eclipse。

10-16 17:39:22.983: E/b(24170): Authentication failed on the server. 10-16 17:39:22.983: E/Google Maps Android API(24170): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map. 10-16 17:39:22.986: E/Google Maps Android API(24170): In the Google Developer Console (https://console.developers.google.com) 10-16 17:39:22.986: E/Google Maps Android API(24170): Ensure that the "Google Maps Android API v2" is enabled. 10-16 17:39:22.986: E/Google Maps Android API(24170): Ensure that the following Android Key exists: 10-16 17:39:22.986: E/Google Maps Android API(24170): API Key: AIzaSyC2MVY7YknNfRtScZ45q7NcAADtF59IfnI 10-16 17:39:22.986: E/Google Maps Android API(24170): Android Application (;): BE:7B:1E:07:B4:F0:F9:9E:74:09:CF:01:CC:F5:DF:EA:6E:4B:0D:E2;com.example.cc

我仔细检查了 API key 及其创建。

谢谢

最佳答案

<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="//place your API key here" />

如果您已经完成,请检查 SHA1 key 和包名称。您在控制台中提供的包名称和构建 gradle -> applicationId 中的包名称应该相同。确保您提供了真正的 SHA1 key 。

关于Android Google Map V2 身份验证问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33170964/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com