I am trying to get gradle project support in my latest eclipse. I installed the official gradle plugin from eclipse marketplace. I downloaded a couple of gradle based projects randomly from github (just to test) and whenever I import any of them, they start downloading a different gradle zip for each project. gradle-2.2.1-all.zip
and gradle-2.9-all.zip
and others.
and I end up getting this error when it's downloaded, it never lets me import the project:
Synchronize Gradle builds with workspace failed due to an error in the referenced Gradle build. Could not fetch model of type 'EclipseProject' using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.9-all.zip'. A problem occurred configuring project ':cSploit'. SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. org.gradle.tooling.BuildException: Could not fetch model of type 'EclipseProject' using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.9-all.zip'.
so the questions are:
1) do I need a different gradle zip for each project?
2) do I need to download the same zip again if I import the same project again after switching to some other project?
3) can't I just download the latest gradle zip which is supported by all projects?
4) how do I fix this error?