Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"This app won't run unless you update google play services" alert

I am getting "Update Google Play Services" alert when running project on emulator. If I click OK then there is one more alert behind it. I keep clicking OK and there are tons of alerts already popped up and I end up giving up.

Message looks as below :

enter image description here

I've tried updating everything in SDK manager. Also tried in Eclipse, Help->Check for updates.

like image 962
Geek Avatar asked Oct 14 '13 10:10

Geek


4 Answers

Updated: Jun 27 2019:

The new google x86 emulator with play services is exactly like a device where you can install apps from play store and all other things.

Previous Answer:

I faced similar problem while trying google maps in emulator. While some people have been able to run google play services in their emulator by downloading google play services application from their mobile, making the apk file and then installing that file in emulator, it is really complicated process and works for certain api level only. Same is the case with emulator using google api's that shift with builtin maps and google play services. The maps application will work in emulator while your application asks for update to google play services. So the wise thing to do is to test it in real hardware.

like image 137
Illegal Argument Avatar answered Oct 19 '22 13:10

Illegal Argument


For me, I had to go to settings | apps on my emulator and then find Google Play Services, I then saw that the version number was no where near the current version number (6.7.74 as against the current 7.3.0)

I then went to my dependencies and changed:

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

to

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

You'll get warnings saying a newer version is available and to avoid using + in version numbers but if you've spent the entire day looking for a solution like I did, you could care less.

like image 31
Ojonugwa Jude Ochalifu Avatar answered Oct 19 '22 13:10

Ojonugwa Jude Ochalifu


In android studio changing the depencies work for me:

com.google.android.gms:play-services:5.+

to:

com.google.android.gms:play-services:5.0.+

like image 32
devcfgc Avatar answered Oct 19 '22 15:10

devcfgc


Now you can also use your emulator to run Android MAP API V2.

Note: Only Android 4.2.2 and higher versions of the Google APIs platform include Google Play services.

The problem here is that you have an older version of Google Play Services. Update to the latest version by opening the SDK Manager => Extras => Google Play Services.

like image 25
arshu Avatar answered Oct 19 '22 15:10

arshu