8

so I have never had this happen before, I am trying to load a gradle project in IntelliJ idea, but I keep getting this following error.

Cannot use connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-3.0-bin.zip' as it has been stopped.

Here is the logs of the gradle process

Download https://services.gradle.org/distributions/gradle-3.0-bin.zip finished, took 14 s 732 ms (69.3 MB)
7:49:01 AM: Execution finished 'wrapper'.

Could not find anything on google that was useful.

SamHoque
  • 2,978
  • 2
  • 13
  • 43
  • still looking for a solution that could work with gradle 3.0 – SamHoque Dec 28 '21 at 03:52
  • Does it work fine from command line outside IDE? – y.bedrov Dec 28 '21 at 14:30
  • When it says "Cannot use connection to Gradle distribution 'xxxx' as it has been stopped" I simply closed the project, quit android studio, and then relaunched Android Studio and opened the project and it worked, i.e., Gradle was not stopped and I could continue. – Dr. Roger Webster Jan 17 '23 at 12:10

2 Answers2

2

When it says "Cannot use connection to Gradle distribution 'xxxx' as it has been stopped" I simply closed the project, quit android studio, and then relaunched Android Studio and opened the project and it worked, i.e., Gradle was not stopped and I could continue.

0

I just clicked Reload Gradle Project as shown in the picture and the issue is gone.

enter image description here

Ahmed Shendy
  • 1,424
  • 15
  • 28