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

3686 views.

Error:A problem occurred configuring root project ‘FinanceCalculator’. > 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: file:/F:/Android Studio/android-studio-ide-171.4010489-windows/android-studio/gradle/m2repository/com/android/tools/build/gradle/3.0.0-alpha1/gradle-3.0.0-alpha1.pom file:/F:/Android Studio/android-studio-ide-171.4010489-windows/android-studio/gradle/m2repository/com/android/tools/build/gradle/3.0.0-alpha1/gradle-3.0.0-alpha1.jar 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 :

Add Comment
1 Answer(s)
2035 views.

Google have new maven repository, so it could be the reason.

 

https://android-developers.googleblog.com/2017/05/android-studio-3-0-canary1.html > section Google’s Maven Repository

 

https://developer.android.com/studio/preview/features/new-android-plugin-migration.html https://developer.android.com/studio/build/dependencies.html#google-maven

 

So maybe (not tested) add dependency on maven repo:

 

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
 maven { url 'https://maven.google.com' }
 jcenter()
 }
 dependencies {
 classpath 'com.android.tools.build:gradle:3.+'
// NOTE: Do not place your application dependencies here; they belong
 // in the individual module build.gradle files
 }
}
allprojects {
 repositories {
 maven { url 'https://maven.google.com' }
 jcenter()
 }
}
task clean(type: Delete) {
 delete rootProject.buildDir
}
Answered on May 27, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.