Android Google Places API"PLACES_API_QUOTA_FAILED" [英] Android Google Places API "PLACES_API_QUOTA_FAILED"

查看:79
本文介绍了Android Google Places API"PLACES_API_QUOTA_FAILED"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,所以我对Google maps/geo有点陌生.于是我去了Google控制台,添加了一个应用程序,启用了"Android的Places API" ,复制粘贴的API密钥,例如这个:

Ok, so I am kinda new to Google maps/geo etc. So I went to the Google console, added an application, enabled "Places API for Android", copy pasted the API key like this :

<meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="API-KEY" />

我曾经做过一项活动

mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, 0 /* clientId */, this) .addApi(Places.GEO_DATA_API) .build();

mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, 0 /* clientId */, this) .addApi(Places.GEO_DATA_API) .build();

从示例代码中复制粘贴的适配器. 一切编译正常,autocompletetextview都正确设置.

Copy pasted the adapter from the samples code. Everything compiled fine, autocompletetextview was setup properly and all.

现在,当我开始输入文字时,它会立即引发错误 Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_QUOTA_FAILED, resolution=null}

Now when I started typing, it throws an error immediately Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_QUOTA_FAILED, resolution=null}

我搜索了一下,然后猜出了什么,google甚至在他们的文档中都没有这个错误代码!有人面对过吗?我在这里想念东西吗?

I searched and searched and guess what, google doesn't even have this error code in their documentation! Has anybody faced this? Am I missing something here?

P.S-我一天前添加了该应用,因此我的配额肯定还没有结束.同样,对于已用完的配额,它是一个不同的错误代码.

P.S - I added the app a day ago so definitely my quota is not over. Also its a different error code for exhausted quota.

推荐答案

抱歉,这个令人困惑的错误代码-我们正在努力解决.

Sorry about this confusing error code—we're working on getting that fixed.

这可能是由于开发者控制台配置中的证书指纹不正确所致.您是否可以仔细检查 https://developers.google.com/places上的说明/android/signup#find-cert ?

This could be due to an incorrect certificate fingerprint in your Developers Console configuration. Would you mind double checking the instructions at https://developers.google.com/places/android/signup#find-cert?

让我知道是否可行.

这篇关于Android Google Places API"PLACES_API_QUOTA_FAILED"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆