Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play services complains to be out dated

Tags:

android

And it's aparently not.

I've just compiled an APP with the latest google play services, which I've set on gradle as:

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

But when I open my APP, there's a huge warning.

enter image description here

And in LogCat:

W/GooglePlayServicesUtil﹕ Google Play services out of date. Requires 5208000 but found 5089070

If I open google play (pressing Actualizar button), I can see my Google Play services are totally updated.

This is happening on a genymotion emulator aswell as on a nexus 5 device.

I've tried things like:

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

However it complains:

Error:Could not find com.google.android.gms:play-services:5.2.8. Required by: :mobile:unspecified > :BaseGameUtils:unspecified

Any tips?

like image 741
Reinherd Avatar asked Aug 09 '14 15:08

Reinherd


People also ask

Does Google Play Services need to be updated?

Google Play Services let your Android apps connect to the internet and communicate with Google. Updating Google Play Services can fix app issues, and help your Android device run faster. If updating Google Play Services doesn't help, you can also clear its cache and data.

What to do if Google Play Services is not updating?

How to Update Google Play Services on Android. To check if Google Play services is up-to-date, open the Google Play services app page in a web browser. If you see Deactivate, then your app is current. If you see Update, tap it to download and install the latest updates for Google Play services.

What's up with Google Play Services?

Google Play services helps to ensure the security and reliability of an Android device, and keep devices updated with the latest security features. This includes: Google Play Protect, which can warn users if an app contains known malware.


1 Answers

Fixed with

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

I've found out is that my Android Studio is downloading some version of google play services, which is not yet released on Google Play. That means that noone have that latest APK on their devices. So setting gradle to use an older version, will make the trick

like image 146
Reinherd Avatar answered Sep 27 '22 23:09

Reinherd