I am unable to use the Place picker in my app. The API worked then just stopped one day with no explanation.The picker shows up for a very short period of time then simply c
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!!!
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.
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.