Gradle error : Could not find com.android.tools.build:gradle:2.2.3

前端 未结 13 1341
盖世英雄少女心
盖世英雄少女心 2020-12-05 09:44

I\'m trying to build my android project using gradle and circleCI, but I\'ve got this error :

* What went wrong:
  A problem occurred configuring root projec         


        
13条回答
  •  死守一世寂寞
    2020-12-05 10:25

    After the recent update to Android Studio 3.0 Canary 1, I got the following error:

    > Could not resolve all dependencies for configuration ':classpath'.
       > Could not find com.android.tools.build:gradle:3.0.0-alpha1.
         Searched in the following locations:
             https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-alpha1/gradle-3.0.0-alpha1.pom
             https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-alpha1/gradle-3.0.0-alpha1.jar
         Required by:
             project :
    

    Here is what I had to add (to the project-level build.gradle):

    buildscript {
        repositories {
            maven {
                url 'https://maven.google.com'
            }
            ....            
        }
    

    Found here: https://developer.android.com/studio/preview/features/new-android-plugin-migration.html

提交回复
热议问题