Could not find com.android.tools.build:gradle:3.2.1. after upgrading to Android Studio 3.3
See original GitHub issueI am getting following error after updating AS to 3.3.
ERROR: Could not find com.android.tools.build:gradle:3.2.1.
Searched in the following locations:
- file:/home/cube/Development/android-studio/gradle/m2repository/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom
- file:/home/cube/Development/android-studio/gradle/m2repository/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar
- https://dl.bintray.com/android/android-tools/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom
- https://dl.bintray.com/android/android-tools/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar
- https://maven.fabric.io/public/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom
- https://maven.fabric.io/public/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar
- https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar
Required by:
project :app > com.apollographql.apollo:apollo-gradle-plugin:1.0.0-alpha4
Open File
My main gradle file is:
buildscript {
ext.kotlin_version = '1.3.11'
repositories {
maven { url "https://dl.bintray.com/android/android-tools" }
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.2.0' // google-services plugin
}
}
the app gradle file is:
buildscript {
repositories {
/*maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
*/
maven { url "https://dl.bintray.com/android/android-tools" }
maven {
url 'https://maven.fabric.io/public'
}
jcenter()
}
dependencies {
classpath 'com.apollographql.apollo:apollo-gradle-plugin:1.0.0-alpha4'
// Add dependency
classpath 'io.fabric.tools:gradle:1.27.0'
}
}
repositories {
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Error:Could not find com.android.tools.build:gradle:3.3. Issue ...
Inside buildscript add google() then open terminal write command-- gradlew build and press enter. enter image description here
Read more >Could not find com.android.tools.build:gradle:3.2.1 ... - GitHub
I am getting following error after updating AS to 3.3. ERROR: Could not find com.android.tools.build:gradle:3.2.1. Searched in the following ...
Read more >Trying to get 3.3 working android studio and other bugs
Error:Could not find com.android.tools.build:gradle:3.3.0. Searched in the following locations: file:/Applications/Android ...
Read more >No cached version of com.android.tools.build:gradle:3.3 ...
I did download gradle-3.3-all.zip from here, and extract that to C:\Program ... Android Studio: Could not find com.android.tools.build:gradle:2.0.0-alpha2.
Read more >Android Gradle plugin release notes - Android Developers
For more information about the Gradle build system, see the Gradle user guide. Update the Android Gradle plugin. When you update Android Studio,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try adding google repository in your app gradle file
clear gradle cache
rm -rf $HOME/.gradle/caches/
and resync to download all dependenciesGo Settings/Gradle/Android Studio. Then check “Enable embedded Maven repository”. And you’re good to go.