I’ve got an ANDROID_HOME variable set:
$ set | grep ANDROID_HOME
ANDROID_HOME=/Users/jenkins/android-sdk-macosx
However when I start ruby, it’s not seeing it:
$ irb
1.9.3p194 :001 > ENV["ANDROID_HOME"]
=> nil
It is seeing other variables however:
1.9.3p194 :002 > ENV["HOME"]
=> "/Users/jenkins"
The ANDROID_HOME variable is defined in my ~/.profile .
Any thoughts? Thanks!
You need to
exportthe variable otherwise it won’t be visible in any child processes:So in your
.profile: