Google Places API for Android Place Picker Does not work

有些话、适合烂在心里 提交于 2019-11-28 13:23:20

I figured out the answer to my own question.

If anybody else encounters the same issue, make sure you enable "Places API for Android" and not just "Places API" in the Developer Console. "Places API for Android" will not show up under "APIs & Auth/APIs" because it isnt a popular API (yet). You will have to search for it using the API search box.

codeKnight

instead of this:

<meta-data
    android:name="com.google.android.maps.v2.API_KEY"
    android:value="your_key"/>

add this:

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

It worked for me!!!

wbervoets

Check your build variant.

If you switched back from release to debug, you typically also get result code 2.

Switching back to release did the trick for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!