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! :]
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:
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.
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 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.
and let me know if that works for you.
Thank you so much. It totally makes sense now, and it works.
That’s great news!
Thank you for reading the book, and I hope you enjoy the rest of it!