'Gradle sync failed: Cause: https://downloads.gradle.org/distributions/gradle-2.3.2-all.zip
Platform and Plugin Updates in Android Studio and I get the error:
Gradle sync failed: Cause: https://downloads.gradle.org/distributions/gradle-2.3.2-all.zip
In File > Project structure > Project Gradle version: 2.3.2/ Android plugin version 2.3.2
My Gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Solution 1:[1]
Make sure Android studio is able to reach the internet (for example if you're behind a proxy)
Solution 2:[2]
I updated the distributionUrl in gradle-wrapper.properties file in the project cradle Scripts to a later release and existed in my .gradle directory in /username/.gradle/wrapper/dists
my /username/.gradle/wrapper/dists had
- gradle-3.5.3-all
- gradle-5.4.1-all
- gradle-5.6.2-all
- gradle-6.0.1-all
I got the above error when my distributionUrl=https\://services.gradle.org/distributions/gradle-3.5.3-all.zip
I changed it to distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
And the build was successful.
Solution 3:[3]
Hope this helps :download gradle by-> click on Tools --> Android --> Sync Project with Gradle Files from the Android Studio menu bar.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nonos |
| Solution 2 | Isaac Pitwa |
| Solution 3 | Kundan Singh |
