如何激活未列出的 Google 地图 Android API v2
How to Activate the Google Maps Android API v2 its not listed
我遇到以下错误:
09-13 15:13:56.147: E/b(356): Authentication failed on the server.
09-13 15:13:56.147: E/Google Maps Android API(356): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
09-13 15:13:56.157: E/Google Maps Android API(356): In the Google Developer Console (https://console.developers.google.com)
09-13 15:13:56.157: E/Google Maps Android API(356): Ensure that the "Google Maps Android API v2" is enabled.
09-13 15:13:56.157: E/Google Maps Android API(356):
它没有在控制台中列出现在该怎么办我怎样才能得到地图
假设您已经在控制台中创建了一个项目,它就列在那里:
然后您必须通过“凭据”部分创建 API 密钥。
我已经解决了这个问题:
将您的 google 播放服务更新到最新并重建项目
有2个不同的API KEY 应该应用,一个用于调试,一个用于发布,如果你使用地图模板创建项目会更容易,所以你会得到goole_map_API.xml 在你的项目上。如果您使用空白/空项目,只需在 src\debug\res\values 文件夹和 src\release\res\values\ folder
上创建 google_map_API.xml
要在 google_maps_apis.xml 上创建调试 API KEY,您将获得 link,复制 link 并在浏览器中打开,使用 link 创建凭证密钥。您将从调试文件中获得的 link 示例:
To get one, follow this link, follow the directions and press "Create" at the end:
https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=70:52:69:E7:6F:B9:61:62:C4:8B:F2:1D:A2:28:FE:55:43:4F:FF:08%3Bcom.devdov.myapplication
获得调试密钥后,将 API KEY 输入到 src\debug\res\values\google_map_APIS.xml。
最后一件事是为发布版本创建您自己的 API KEY 将 API KEY 放到 src\release\res\values\google_map_APIS.xml.
重建你的项目
经过一天多的搜索和尝试,这个步骤对我有用
我遇到以下错误:
09-13 15:13:56.147: E/b(356): Authentication failed on the server.
09-13 15:13:56.147: E/Google Maps Android API(356): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
09-13 15:13:56.157: E/Google Maps Android API(356): In the Google Developer Console (https://console.developers.google.com)
09-13 15:13:56.157: E/Google Maps Android API(356): Ensure that the "Google Maps Android API v2" is enabled.
09-13 15:13:56.157: E/Google Maps Android API(356):
它没有在控制台中列出现在该怎么办我怎样才能得到地图
假设您已经在控制台中创建了一个项目,它就列在那里:
然后您必须通过“凭据”部分创建 API 密钥。
我已经解决了这个问题:
将您的 google 播放服务更新到最新并重建项目
有2个不同的API KEY 应该应用,一个用于调试,一个用于发布,如果你使用地图模板创建项目会更容易,所以你会得到goole_map_API.xml 在你的项目上。如果您使用空白/空项目,只需在 src\debug\res\values 文件夹和 src\release\res\values\ folder
上创建 google_map_API.xml
要在 google_maps_apis.xml 上创建调试 API KEY,您将获得 link,复制 link 并在浏览器中打开,使用 link 创建凭证密钥。您将从调试文件中获得的 link 示例:
To get one, follow this link, follow the directions and press "Create" at the end:
https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=70:52:69:E7:6F:B9:61:62:C4:8B:F2:1D:A2:28:FE:55:43:4F:FF:08%3Bcom.devdov.myapplication
获得调试密钥后,将 API KEY 输入到 src\debug\res\values\google_map_APIS.xml。
最后一件事是为发布版本创建您自己的 API KEY 将 API KEY 放到 src\release\res\values\google_map_APIS.xml.
重建你的项目
经过一天多的搜索和尝试,这个步骤对我有用