2016-06-09 42 views
2

我已經創建了一個使用Google Places API的Android項目。有一次,我對最近的地方發送請求,正在此錯誤:錯誤此API項目未被授權使用此API。請確保此API已在控制檯中激活

Error This API project is not authorized to use this API. Please Ensure this API is activated in the Console

我已經啓用谷歌Android Places API的和正在使用的瀏覽器的API密鑰。我的問題是如何激活我的API?還是應該購買?

+0

瀏覽器密鑰?爲什麼不android鍵? –

+0

我在這裏閱讀http://karnshah8890.blogspot.co.ke/2013/03/google-places-api-tutorial.html,但仍然沒有幫助。我還使用了無法使用的android鍵 –

+0

請問您如何激活api鍵? –

回答

20

我得到了解決方案。我想在我的android應用程序中顯示我的位置附近最近的地方。我在google api控制檯中使用我的gmail帳戶創建了瀏覽器API密鑰。我做錯了,以啓用Android谷歌地方API。請不要啓用它,而是啓用Google Places API Web服務。這就是我解決問題的方法。任何問題都準備好回答

+0

完美的解決方案,謝謝 – sandeepmaaram

相關問題