我在我的Android应用程序中集成了Google Places API.我已阅读API文档在这里看到.
我已激活Google Places Api for android并生成浏览器密钥,当我调用api时收到错误响应 -
{"error_message" : "This API project is not authorized to use this API.Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
Run Code Online (Sandbox Code Playgroud)
我也尝试创建android键,它返回 -
{
"error_message" : "This IP, site or mobile application is not authorized to use this API key.",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
Run Code Online (Sandbox Code Playgroud)
我没有得到我的代码中的问题.
任何帮助表示赞赏.提前致谢.
检查API控制台 - 