Could Not Find Com.Android.Tools.Build:Gradle:3.0.0-Alpha1 in Circle Ci

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

Google have new maven repo

https://android-developers.googleblog.com/2017/10/android-studio-30.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 add the dependency on maven repo:

buildscript {
repositories {
...
// You need to add the following repository to download the
// new plugin.
google() // new which replace https://maven.google.com
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.6.3' //Minimum supported Gradle version is 4.6.
}
}

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

I am not quite sure, but maybe you should try putting the repositories tag at the same level of the dependencies tag. So:

buildscript {
repositories {
...
}
dependencies {
...
}
}

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

Follow the steps in the 3.0.0 plugin migration guide

Update gradle version

The new Android plugin requires Gradle version 4.1-milestone-1 or
higher. If you're opening an existing project using Android Studio 3.0
Preview 5 or later, follow the prompts to automatically update an
existing project to the compatible version of Gradle.

To update Gradle manually, update the URL in gradle-wrapper.properties
as follows:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip

and

Apply the plugin

If you're opening an existing project using Android
Studio 3.0 Preview 5 or later, follow the prompts to automatically
update your project to the latest version of the Android plugin. To
manually update your project, include the maven repo and change the
plugin version in your project-level build.gradle file as follows:

buildscript {
repositories {
...
// You need to add the following repository to download the
// new plugin.
jcenter()
google()
}

dependencies {

classpath 'com.android.tools.build:gradle:3.2.1' //Minimum supported Gradle version is 4.6
}
}

Could not find com.andorid.tools.build:gradle:3.0.0-beta2

I have SOlved this issue by using the Android Studio 3.0 Beta2. I have just changed the gradle dependencies as follows

top level gradle dependencies

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

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.1.0'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
}
}

allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
maven { url 'https://jitpack.io' }
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

I have just changed beta6 to beta2.I dont know how it works fine but it is working fine

could not find gradle 3.0.0-alpha4


If you're opening an existing project using Android Studio 3.0 Preview
1 or later, follow the prompts to automatically update your project to
the latest version of the Android plugin. To manually update your
project, include the maven repo and change the plugin version in your
project-level build.gradle file as follows:

Open your Project level build.gradle Section .

You should add maven { url 'https://maven.google.com' } .

Example

 buildscript {
repositories {
jcenter()
// 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-alpha4' // Same for alpha6

}
}

allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
}

Could not find com.android.tools.build:gradle:3.6.2

Add the google repo in the buildscript block:

buildscript {
//....
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.2'
//...
}
}

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

It seems the current versions of the Android Gradle plugin are not added to Maven Central, but they are present on jcenter. Add jcenter() to your list of repositories and Gradle should find version 2.2.3. On Maven Central the newest available version is 2.1.3: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.android.tools.build%22%20AND%20a%3A%22gradle%22. You can also complain to the authors that the current versions are missing on Maven Central.



Related Topics



Leave a reply



Submit