Android Places API: Google Play Services Out of Date on Emulator

后端 未结 9 1674
鱼传尺愫
鱼传尺愫 2021-01-01 10:46

I am attempting to utilize the Google Places API\'s PlacePicker in my Android app. However, whenever I attempt to create the picker, I receive the following error message:

相关标签:
9条回答
  • 2021-01-01 11:40

    Update your packages in Tools > Android > SDK Manager and then check all the packages in Extras that have an update available.

    After you have done this use the following dependency in your (app) build.gradle

    compile 'com.google.android.gms:play-services:7.3.0'
    
    0 讨论(0)
  • 2021-01-01 11:42

    I had the same issue, and had to move down to API 21 emulator image with google apps. That one is more up to date, and works.

    0 讨论(0)
  • 2021-01-01 11:44

    my logcat is

    Google Play services out of date. Requires 12210000 but found 11947270

    so I changed the code of build.gradle

    implementation 'com.google.android.gms:play-services-maps:12.0.0'
    

    to

    implementation 'com.google.android.gms:play-services-maps:11.0.0'
    

    and it works

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