RuntimeExecutionException: com.google.android.gms.common.api.ApiException: 13: ERROR Places API

前端 未结 8 1919
陌清茗
陌清茗 2020-12-06 04:14

I am getting the following exception while trying out google places API to get likelihood places for Current Place in android.

Process: me.nabeelkottol.linke         


        
相关标签:
8条回答
  • 2020-12-06 05:11

    Make sure you have added the following meta-data in your manifest file.

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

    Also check for any API restrictions in your Google API console. If you have enabled any API restriction to the API_KEY, then it will work only for the particular API. You have to add Places SDK for Android under API restrictions.

    0 讨论(0)
  • 2020-12-06 05:13

    You can see a discussion here about this issue. For me the problem occurred on the emulator but it was working on a physical device.

    0 讨论(0)
提交回复
热议问题