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

后端 未结 9 1735
鱼传尺愫
鱼传尺愫 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: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

提交回复
热议问题