Android Place Picker closes immediately after launch

后端 未结 14 1395
难免孤独
难免孤独 2020-11-27 04:57

I am developing an android application as part of a project, and am using Google places API to display places of interest based on location. I am using the PlacePicker Inent

14条回答
  •  我在风中等你
    2020-11-27 05:54

    Francois Wouts' solutions helped answer this. Thank you Francois...

    I searched the logs with keyword 'Places' and found that Places API was indeed throwing an exception. It expected the com.google.android.geo.API_KEY within the tags in the Manifest.xml.

    I had changed to com.google.android.geo.API_KEY in the tag and not the one in the tag.

    Now changed to com.google.android.geo.API_KEY and removed the same lines from tag, and got it working. Feel like an idiot for not working this out by myself..

    The meta-data tag should read android:name="com.google.android.geo.API_KEY"
    It should be within the tag in the Manifest.

提交回复
热议问题