Gradle can not find google play dependency

前端 未结 3 1914
不知归路
不知归路 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 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'
            }
        }
    

提交回复
热议问题