Java – Missing gradle 2.0.0 beta 7

Missing gradle 2.0.0 beta 7… here is a solution to the problem.

Missing gradle 2.0.0 beta 7

I keep getting this error. Any ideas?

What went wrong:
A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:classpath'.
Could not find com.android.tools.build:gradle:2.0.0-beta7.
Searched in the following locations: 
https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.0.0-beta7/gradle-2.0.0-beta7.pom
https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.0.0-beta7/gradle-2.0.0-beta7.jar

Solution

You are referring to Maven Central for finding the Android plugin Artifact, which was published on jcenter

Add jcenter() to the buildscript.repositories block in the root build.gradle file.

It should look like this:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:X.X.X' // your verison

 NOTE: Do not place your application dependencies here; they belong
             in the individual module build.gradle files
        }
    }

Related Problems and Solutions