Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle Sync Failed: Cause: https://downloads.gradle.org/distributions/gradle-3.1.2-all.zip

I'm at importing old project done on Eclipse. and got updates using Helps--> Check for Updates then, press "Sync Project with Gradle Files" button. so, in 2 seconds, this message appeared at Build:sync and Event log windows

Please help me with right ways of experience.

like image 637
Seyong Ro Avatar asked Apr 28 '18 06:04

Seyong Ro


People also ask

How do I sync Gradle?

Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.


1 Answers

That distribution doesn't exist (https://services.gradle.org/distributions/)

To fix it change your distributionUrl in the gradle-wrapper.properties file to a valid version. For example

distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
like image 131
Jerry Sha Avatar answered Oct 20 '22 03:10

Jerry Sha