I have this problem with my emulator, i\'m using API 5.1.1 and i have the lastest version of Google Play Services from SDK Manager.
AndroidManifest.xml:
Change the SDK in your emulator to v21 or lower. Physical devices are not effected by this issue.
The reason Android is complaining about an update for Google Play services is related to a known issue in Android emulators for API v22 and up (at this time 23). https://code.google.com/p/android/issues/detail?id=176348
You should try to use the latest version of Play Services in your build script as users are generally forced to have the latest version of this on their device.
I downgrade the SDK to 5.0 from 5.1 and it's work.
Since I haven't seen any working solutions in 2020. There are two ways to fix this:
Easy way is to create a new emulator with PlayStore Enabled
. Check before downloading system image for the emulator.
Hard way is to to install Google Play Store
on the emulator manually and make the update button work. You can refer to the installation part here.
After that, the app will automatically update the Google Play Services in a few minutes. That's all.
Note: If that doesn't work, Go to Chrome -> Search for Google Play Services and open the playStore link of that app and update it there.
my emulator's Google Play services version is 12.6.85
so I changed the build.gradle like:
implementation 'com.google.android.gms:play-services-maps:12.0.1'
Notes:
Your build.gradle has this line:
compile 'com.google.android.gms:play-services:+'
This means that android will use the latest version of Google Play Services when ever the app is run. The emulator might not have all the latest updates so the app will not run. Updating Google Play Services will help.
My issue was resolved after logging in with an google account on the emulator. The 'update' button worked after that