After update - Error:Failed to find: com.google.android.gms:play-services:5.2.8

后端 未结 6 1105
面向向阳花
面向向阳花 2020-12-30 01:22

Gradle project sync failed.

After update the android SDK I got this error:

Error:Failed to find: com.google.android.gms:play-services:5.2.8

相关标签:
6条回答
  • 2020-12-30 01:59

    I use

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

    Even though it warns against it. If things go flakey after an update I'll revert back to the current version.

    0 讨论(0)
  • 2020-12-30 02:05

    You can now use

    compile 'com.google.android.gms:play-services:6.1.11'
    
    0 讨论(0)
  • 2020-12-30 02:05

    Suggesting using Open File> Project Structure, click the "add (+)", searching for "play-service" to select the currently available version. Something like this image: http://i.stack.imgur.com/9Pv7j.jpg

    0 讨论(0)
  • 2020-12-30 02:13

    I had the same problem. I solved using:

    compile 'com.google.android.gms:play-services:7.0.0'
    
    0 讨论(0)
  • 2020-12-30 02:15

    Check your sdk extras packages, you need to install:

    • Google Play services
    • Google Repository

    For me, the thing was that I didn't have the second one installed and then "---:5+" worked as described here:

    https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start

    0 讨论(0)
  • 2020-12-30 02:16

    try using com.google.android.gms:play-services:5.2.08 instead of 5.2.8.

    you can also look for the right version number in your services directory:

    .. /android-studio/sdk/extras/google/m2repository/com/google/android/gms/play-services/

    0 讨论(0)
提交回复
热议问题