提供的 API 密钥未配置为在 Google 地图道路 Api 中的此 Android 应用程序中使用
The supplied API key is not configured for use from this Android app in Google map Road Api
以下是我完成的步骤:
Select Google 地图道路 API 并通过传递 android 限制密钥 [= =27=]SHA 密钥 和 程序包名称。
我还启用了另一个 API 即 Google 地图 Android API 这是使用代码工作正常。
我取消了key的限制,结果还是一样。
在开发者控制台上,每个 google 地图道路 API 请求都会进入错误列。
请帮我解决这个问题,因为我无法弄清楚另一个 API 钥匙有什么问题,但在 API.[=15= 道路上出现错误]
{
"error": {
"code": 403,
"message": "The supplied API key is not configured for use from this Android app.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developer console API key",
"url": "https://console.developers.google.com/project/41764599888/apiui/credential"
}
]
}
]
}
}
在 google 地图道路 api 上花费数小时后,
我得出了解决方案:
这是小费google地图路api:
During development and testing, you can register a project for testing
purposes in the Google API Console and use a generic, unrestricted API
key. When you are ready to move your app or website into production,
register a separate project for production, create a server-restricted
API key, and add the key to your application.
你只需要取消密钥的限制,因为我之前以错误的方式这样做。
以下是我完成的步骤:
Select Google 地图道路 API 并通过传递 android 限制密钥 [= =27=]SHA 密钥 和 程序包名称。
我还启用了另一个 API 即 Google 地图 Android API 这是使用代码工作正常。
我取消了key的限制,结果还是一样。
在开发者控制台上,每个 google 地图道路 API 请求都会进入错误列。
请帮我解决这个问题,因为我无法弄清楚另一个 API 钥匙有什么问题,但在 API.[=15= 道路上出现错误]
{
"error": {
"code": 403,
"message": "The supplied API key is not configured for use from this Android app.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developer console API key",
"url": "https://console.developers.google.com/project/41764599888/apiui/credential"
}
]
}
]
}
}
在 google 地图道路 api 上花费数小时后,
我得出了解决方案:
这是小费google地图路api:
During development and testing, you can register a project for testing purposes in the Google API Console and use a generic, unrestricted API key. When you are ready to move your app or website into production, register a separate project for production, create a server-restricted API key, and add the key to your application.
你只需要取消密钥的限制,因为我之前以错误的方式这样做。