Android Studio: Gradle Refresh Failed - Could not find com.android.tools.build:gradle:2.2.0-alpha6

前端 未结 7 1661
攒了一身酷
攒了一身酷 2020-12-24 01:46

I\'ve just pulled down an Android project from git, and Android Studio is giving me the following error whenever I attempt to open it;

Error:Could not find c         


        
7条回答
  •  情书的邮戳
    2020-12-24 02:13

    This is because the build process is unable to find the dependency in Maven repository. Add jcenter() along with mavenCentral() in your project level build.gradle file.

    buildscript {
        repositories {
            mavenCentral()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.2.0'
        }
    }
    

提交回复
热议问题