Gradle can not find google play dependency

前端 未结 3 1911
不知归路
不知归路 2021-02-04 10:19

I try to repair the dependency to google play services in my android project. It already worked but now it is broken. I think this happened in between the Android Studio beta- a

相关标签:
3条回答
  • 2021-02-04 10:54

    Try download the sdk and use this library

    compile 'com.google.android.gms:play-services:7.0.0'
    
    0 讨论(0)
  • 2021-02-04 11:06

    In Android SDK Manager download the "Google Repository"

    0 讨论(0)
  • 2021-02-04 11:18

    After adding jcenter() to reposetories or top level gradle file I fixed the issue

        buildscript {
            repositories {
                jcenter()
                mavenCentral()
            }
    
            dependencies {
                classpath 'com.android.tools.build:gradle:1.0.1'
                classpath 'com.google.gms:google-services:1.5.0-beta2'
            }
        }
    
    0 讨论(0)
提交回复
热议问题