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
Slowing Speed of Viewpager Controller in Android
How to Get the Height and Width of the Android Navigation Bar Programmatically
Android Fragment Onattach() Deprecated
"Gradle Version 2.10 Is Required." Error
Reference One String from Another String in Strings.Xml
Get Referrer After Installing App from Android Market
Android Popup Window Dismissal
Play Audio File from the Assets Directory
How to Show Dependencies Tree in Android Studio
Custom Filtering in Android Using Arrayadapter
Error:(6, 0) Gradle Dsl Method Not Found: 'Google()'
Using the Android Recognizerintent with a Bluetooth Headset
Android:How to Set Onclick Event for Button in List Item of Listview
Latest Update on Enabling and Disabling Mobile Data Programmatically
How to Access the Drawable Resources by Name in Android