Ch 13 - PlaceBook won't run unless you update Google Play services

Hi

I have been following chapter 13, created an emulated device that has the required APIs installed (Oreo), just like in the screenshot. I have also created the key and pasted it into “google_maps_api.xml (debug)”.

When I start the app in the emulator, the following message is shown:
“PlaceBook won’t run unless you update Google Play services.”

When I hit the UPDATE button, it says that the server couldn’t be reached.
“Couldn’t sign in. There was a problem communicating with Google servers.”

What can I do to make the PlaceBook app run?

@tblank Can you please help with this when you get a chance? Thank you - much appreciated! :]

Hi,

This is normally caused by a mismatch in the Google Play service version between the settings in your project and what’s running on the emulator.

Please report back the following settings so I can help troubleshoot the issue:

  1. In the emulator, go to Settings->Apps & Notifications->App info->Google Play Services, and scroll down to the bottom and let me know the version number.

  2. In your project, go to the app/build.gradle file and let me know what version you have set for “implementation 'com.google.android.gms:play-services-maps”.

Thanks,
Tom

Hi Tom,

thanks for your reply.

My version numbers are:

  1. Google Play Services: Version 11.7.43
  2. com.google.android.gms.*: Version 12.0.0, although I have tried 11.8.0 as well

Thanks for the additional information.

Since the emulator is running 11.7.43, you’ll need to build with a version at or below that release.

Please try

implementation ‘com.google.android.gms:play-services-maps:11.6.2’

and let me know if that works for you.

Thank you so much. It totally makes sense now, and it works. :smiley:

That’s great news!

Thank you for reading the book, and I hope you enjoy the rest of it!

Tom