After update - crash com.google.android.gms:play-s

2019-02-16 05:08发布

问题:

my dependencies:

compile "com.android.support:appcompat-v7:20.+"
compile 'com.google.android.gms:play-services:5.2.08'
compile 'com.android.support:support-v4:21.0.+'

but still: Google Play services out of date. Requires 5208000 but found 5089036

how is this possible?

UPDATE this work:

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

or

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

or

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

回答1:

You need to update Google Play Services from Play store on you device, if you don't see any update wait until comes out

Play Store - Google Play Services

Alternatively search on Google and installed the new apk or use an older version like 5.0.77 or 5.0.89



回答2:

Change the Google Play Service version in your build.gradle to the version on your device or emulator.

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


回答3:

The version you are looking for is 5.2.08.

Android Studio will automatically offer to upgrade it to the new version. However, due to a bug, it drops the leading zero in "08", which means it replaces the dependency with "5.2.8" instead of "5.2.08" which does not work. To fix this, edit the dependency to read "5.2.08" instead of "5.2.8"

This will work:

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

source: http://tools.android.com/knownissues



回答4:

For people who suffer from this issue but are not able to make the other work - my issue was that I installed Google Play 5.2.08 in my gradle file (compile 'com.google.android.gms:play-services:5.2.08') because 5.0.77 wasn't working.

  1. I loaded the app onto my phone and it didn't work,

  2. I had the latest update (that I could get on my phone - Android 4.4.2) of google play so telling me to update didn't give me any options

  3. I ended up just needing to update my gradle file to the latest compatible googlePlay, in my case version 5.0.89.
    So find out what version



回答5:

You can now use

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


回答6:

Fixed with For Gradle:

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

For Eclipse:

Add as library:

https://dl-ssl.google.com/android/repository/google_play_services_5077000_r18.zip

If above did not work, try to use older playstore service version of android playstore client.

https://dl-ssl.google.com/android/repository/google_play_services_4132530_r14.zip

https://dl-ssl.google.com/android/repository/google_play_services_4242030_r15.zip

https://dl-ssl.google.com/android/repository/google_play_services_4323030_r16.zip

https://dl-ssl.google.com/android/repository/google_play_services_5077000_r18.zip

https://dl-ssl.google.com/android/repository/google_play_services_5089000_r19.zip

https://dl-ssl.google.com/android/repository/google_play_services_6171000_r21.zip