Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndroidStudio emulator "won't run unless you update Google Play Services"

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:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

In the build.grable:

compile 'com.google.android.gms:play-services:+'

like image 811
Raphael Teyssandier Avatar asked Sep 30 '15 02:09

Raphael Teyssandier


People also ask

Why is my Android emulator on Android Studio not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

How do I disable Google Play services on my emulator?

Go to Settings > Applications > All > Google Play Services > Tap Disable > Tap OK to confirm. Method 2. If you find the Disable checkbox is grayed out, please Go to Settings > Security > Device administrators > Disable Android Device Manager.


2 Answers

Navigate to settings--> apps in your emulator and then find Google Play Services, check the version number and use it in you build.gradle

Hope this helps

like image 119
vab Avatar answered Oct 16 '22 23:10

vab


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.

like image 31
Will Vanderhoef Avatar answered Oct 16 '22 22:10

Will Vanderhoef