错误此API项目无权使用此API.请确保已在控制台中激活此API [英] Error this API project is not authorized to use this API. Please Ensure this API is activated in the Console
问题描述
我创建了一个使用Google Places API的android项目.当我发送到最近地点的请求时,出现此错误:
I have created an android project that make use of Google Places API. Once I send request for the nearest places am getting this error:
错误该API项目无权使用此API.请确保已在控制台中激活了此API
Error This API project is not authorized to use this API. Please Ensure this API is activated in the Console
我已经为Android启用了Google Places api,并且正在使用浏览器API密钥.我的问题是如何激活我的API?还是应该购买?
I have already enabled Google Places api for Android and am using browser API key. My question is How do I activate my API? Or is it supposed to be purchased?
推荐答案
我得到了解决方案.我想在我的Android应用程序中显示我的位置附近的最近地点.我去了,并使用Google api控制台中的gmail帐户创建了浏览器api密钥.我在启用Android Google Google Places API时出错.请不要启用它,而是启用 Google Places API网络服务.这就是我解决问题的方式.任何Q准备回答
I got solution. I wanted to display nearest places around my location in my android application. I went and created browser api key using my gmail account in google api console. I was doing mistake to enable android google places api. Please don't enable it instead enabled Google Places API Web Service. That's how I solved my problem. Any Q am ready to answer
这篇关于错误此API项目无权使用此API.请确保已在控制台中激活此API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!