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.”
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”.