小编Gue*_*ess的帖子

Google Places API始终返回错误

我在我的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控制台 - 在此输入图像描述

android google-places-api

12
推荐指数
2
解决办法
1万
查看次数

标签 统计

android ×1

google-places-api ×1