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

后端 未结 3 1887
北海茫月
北海茫月 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:45

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

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

提交回复
热议问题