After update - crash com.google.android.gms:play-services:5.2.8

前端 未结 6 1512
心在旅途
心在旅途 2021-01-07 20:06

my dependencies:

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


        
相关标签:
6条回答
  • 2021-01-07 20:23

    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

    0 讨论(0)
  • 2021-01-07 20:23

    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

    0 讨论(0)
  • 2021-01-07 20:27

    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

    0 讨论(0)
  • 2021-01-07 20:31

    You can now use

    compile 'com.google.android.gms:play-services:6.1.11'
    
    0 讨论(0)
  • 2021-01-07 20:35

    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

    0 讨论(0)
  • 2021-01-07 20:36

    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' 
    
    0 讨论(0)
提交回复
热议问题