it is quite common issue. Just go to your gradle home directory and bin
, for example:
/home/user/gradle-2.0/bin
and there you should have gradle script, I am on a Windows machine now so I have gradle.bat
, probably you will have gradle.sh
or something like this. In that file, find the line:
set JAVA_HOME=%JAVA_HOME:"=%
or as I can see you are on linux so there will be "export" and change it to your java home directory for example:
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…