1

I'm having an issue building my project in Android Studio, it was working fine a couple of weeks back, but when I tried to run the project today it fails. Here's the error message I get:

org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.7-bin.zip'.: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.7-bin.zip'.

A tried a couple of things:

  • Re-download the bin.zip file again and replace it in the appropriate folder
  • I also tried changing from classpath 'com.android.tools.build:gradle:0.5.+' to just classpath 'com.android.tools.build:gradle:0.5.7', same result.

Any ideas?

EDIT

I ended up uninstalling Android Studio Completely after all. After doing so, I noticed that new projects were now on Gradle 0.6.+, which in turn utilizes gradle-1.8-bin.zip. I updated my build.gradle to the new settings and it finally compiled again.

michel-slm
  • 9,438
  • 3
  • 32
  • 31
daniel_c05
  • 11,438
  • 17
  • 60
  • 78
  • Thanks, Your edit helped solved it - it cost me an hour though. Why is Google incapable of delivering updates without breaking projects? – RunLoop Nov 07 '13 at 03:49

2 Answers2

0

This is marked as known issue in the developer android page

Also in my case need to update the JAVA_HOME path, this thread could help you

Also I had to reconfigure the SDK path and downloading the repository support as mentioned in the Troubleshooting section.

Community
  • 1
  • 1
kEpEx
  • 830
  • 11
  • 20
  • While I do appreciate your help, the link provided for troubleshooting references two different errors, not even similar to this one. As far as the JAVA_HOME, the guide provided is for Mac OSX, and I doubt it has to do with that. As for the support repository, I was already using it :) – daniel_c05 Oct 31 '13 at 05:12
0

At the end none of the solutions worked for me, not even the ones from my previous reponse. I resolved the issue creating a project again using the existing sources ("Import Project" option), seems like new version of android studio makes imposible to use old structure of the project, so that made the trick, basically start over a new project structure using all the existing source.

I hope it helps. This was the one that worked for me.

kEpEx
  • 830
  • 11
  • 20