While importing projects into eclipse i have this error:
Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory. Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.11-all.zip'.
As I have checked i need to set JAVA_HOME (i have the JDK on my computer), but i dont have a clue how to do that.
Best Answer
I had lots of similar problems and I think that the best solution is to specify JDK location manually. In order to do it:
Add two files to project root folder
gradle.properties
:and
local.properties
:You should change
org.gradle.java.home value
to JDK path in your system. If you will have the same problem with android SDK addsdk.dir=/Users/alonzilberman/Android/adt-bundle-mac-x86_64-20130917/sdk
to yourlocal.properties
.After adding files refresh gradle build.