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

前端 未结 8 1943
陌清茗
陌清茗 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 04:50

    Please try following hope so it will be working.

    1) please updated your \sdk\extras\google\google_play_services and try again.

    2)If you are use proguard please excluded google classes from obfuscating like this in proguard-rules.pro:

    -keep public class com.google.** {*;}
    

    3) Versions of play-services libs should be equal, for example:

    compile 'com.google.android.gms:play-services-maps:11.6.0'
    compile 'com.google.android.gms:play-services-gcm:11.6.0'
    

    4)I just had this issue but solved it by downgrading the gradle version like so:

    Old, troublesome version:

     classpath 'com.android.tools.build:gradle:2.2.0-rc2'
    

    Fixed version:

    classpath 'com.android.tools.build:gradle:2.3.3'
    

    and don't forget to add following dependency in project level gradle file.

     dependencies {
            classpath 'com.android.tools.build:gradle:2.3.3'
            classpath 'com.google.gms:google-services:3.1.0'
    
        } 
    

提交回复
热议问题