Error:(23, 13) Failed to resolve: com.google.android.gms:play-services:11.2.0 “Install Repository and sync project” dose not work

后端 未结 3 1881
北海茫月
北海茫月 2021-02-04 12:55

I am trying to get location and update to server in my Android app. This is my Gradle code, here I included compile \'com.google.android.gms:play-services:11.2.0\'

相关标签:
3条回答
  • 2021-02-04 13:27

    Try update version new of google play service

    1. Start Android Studio.
    2. On the Tools menu, click Android > SDK Manager.
    3. Update the Android Studio SDK Manager: click SDK Tools, expand Support
    4. Repository, select Google Repository, and then click OK.
    0 讨论(0)
  • 2021-02-04 13:44

    In build.gradle file:

    repositories {
        maven {
            url "https://maven.google.com"
        }
    }
    

    Same problem and more solution here

    Error:(39, 13) Failed to resolve: com.android.support:appcompat-v7:26.0.0

    0 讨论(0)
  • 2021-02-04 13:45

    Add this to your project-level build.gradle file:

    repositories {
        maven {
            url "https://maven.google.com"
        }
    }
    
    0 讨论(0)
提交回复
热议问题