Reinherd
Reinherd

Reputation: 5506

Google Play services complains to be out dated

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?

Upvotes: 5

Views: 5159

Answers (2)

Reinherd
Reinherd

Reputation: 5506

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

Upvotes: 16

Related Questions