Ok, so I'm new to google maps / geo etc. So, I went to the Google console, added the application, turned on the "Places API for Android" , copied the API key, like this:
<meta-data android:name="com.google.android.geo.API_KEY" android:value="API-KEY" />
I have activity where I was doing
mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, 0 /* clientId */, this) .addApi(Places.GEO_DATA_API) .build();
Copy the adapter insert from the sample code. Everything compiled perfectly, autocompletetextview was configured correctly and that’s it.
Now, when I started typing, it immediately throws an error Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_QUOTA_FAILED, resolution=null}
I searched and searched and guessed that google doesn't even have this error code in their documentation! Has anyone come across this? Did I miss something?
PS - I added the application a day ago, so definitely my quota is not over yet. There is also another error code for the exhausted quota.
source share