On mac if i use this under gradle:
androidSdk ="$System.env.HOME"
it delivered an output: /Users/MyName/
and:
androidSdk ="$System.env.ANDROID_HOME"
it delivered 'null'. Altough i've set the ANDROID_HOME Variable and if i checked unter console
echo $ANDROID_HOME
it delivered the right path.
Have anyone ever set ANDROID_HOME or something like this on gradle
ADDED:
My problems is, why $System.env.ANDROID_HOME = null, when on terminal "echo $ANDROID_HOME" give the right path??
Use:
You need to use the console for this.