AutoComplete Google Places get error :This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console

前端 未结 2 1400
轮回少年
轮回少年 2021-01-24 03:17

i\'m trying to develop Maps with autocomplete textview with Google API.

i tried this tutorial here

but i always get this error when i\'m tryin to get the API : <

2条回答
  •  半阙折子戏
    2021-01-24 03:44

    I see you're using the Places API Web Service — you may find the Places API for Android suits you better as you're writing an Android app. The Places API for Android will allow you to use an Android key, which can be restricted to be only usable by your app, unlike Server keys.

    For using the Web Service follow the Get a Key instructions in the Developer's Guide. In particular make sure that you:

    • Use a Server key, and
    • Have enabled Google Places API Web Service (not the same as Google Places API for Android) in the Google Developers Console.

提交回复
热议问题