Could not find com.android.tools.build:gradle:3.0.0-alpha1

I update the gradle plugin to the latest and this error occured :

export TERM=“dumb”
if [ -e ./gradlew ]; then ./gradlew test;else gradle test;fi

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘Android-app’.

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 :

That link 404’s, do you know that that version is on bintray? If so, can you double check the naming scheme.

I am getting this too with alpha2. Has anyone found a workaround / fix? Thank you!

<-------------> 0% CONFIGURING [10s]> root project > Resolving dependencies ‘:classpath’> IDLE> IDLE> IDLE> IDLE> IDLE> IDLE> IDLE> IDLE> IDLE> IDLE> IDLE
<-------------> 0% CONFIGURING [11s]> root project
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘laelaps-android’.

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

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED in 20s

this was also listed and answered here: https://stackoverflow.com/questions/44071080/could-not-find-com-android-tools-buildgradle3-0-0-alpha1-in-circle-ci

I got around this by adding the google maven repository to the app build.gradle too

add dependency on maven repo:

buildscript {
    repositories {
        ...
        // You need to add the following repository to download the
        // new plugin.
        maven {
          url 'https://maven.google.com'
        }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0-alpha1'
    }

}