Error:Could not run build action using Gradle installation (gradle 2.4 ,android studio)

We have two famous way for this problem:

1- update the gradle:

step 1:

Get latest version supported by Android Studio from:

https://services.gradle.org/distributions

step 2:

Extract the gradle file and install to dists folder(gradle folder): default location is: C:\Users[username]\gradle\wrapper\dists

step 3:

Open Android Studio: File/Settings/Gradle/Service directory path: (Change to folder you set above) and Click ok.

Status on bottom should indicate it's busy & error should be fixed.

step 4:

restart Android Studio

2- Delete the .gradle folder:

default location is:

C:\Users[username]\gradle\wrapper\dists

after that open Android Studio and make a new project (might need to reastart).


In Eclipse, for me it resolved as follows:

  • Delete:

    • workspace/yourProject/.gradle (folder)
  • In Eclipse:

    • Right click on ProjectName > Gradle > Refresh Gradle Project

enter image description here

  • Wait:

    • Download all dependencies
  • Done!


The link you are using is wrong.

Use:

https://services.gradle.org/distributions/gradle-2.4-all.zip

Check the gradle/wrapper/gradle-wrapper.properties file:

distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip