title: ANDROID_HOME environment variable issues with Appium
body: <p>I am trying to run Appium on the command line with OSX El Capitan to test an Android application. I have been able to use Appium many times with the GUI version but have not had the same luck in the terminal. The issues I am facing stem from setting the <code>$ANDROID_HOME</code> environment variable. I have read other posts regarding this problem but the solutions have not helped me. </p>
  
  <p>I have the following in my <code>bash_profile</code> :</p>
  
  <pre><code>export ANDROID_HOME=/Users/adamjakiela/Library/Android/sdk
  export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
  </code></pre>
  
  <p>I then run <code>source ~/.bash_profile</code> and am able to start the SDK by running the <code>android</code> command. I can also print the environment variable:</p>
  
  <pre><code>echo $ANDROID_HOME       
  /Users/adamjakiela/Library/Android/sdk
  </code></pre>
  
  <p>But then, when I run Appium on the command line I receive the following message which eventually leads to other problems:</p>
  
  <pre><code>warn: The ANDROID_HOME environment variable is not set to the Android SDK root directory path.
  </code></pre>
  
  <p>I can also run the Appium doctor and see the following:</p>
  
  <pre><code>Running Android Checks
  ✖ ANDROID_HOME is not set
  Appium-Doctor detected problems. Please fix and rerun Appium-Doctor.
  </code></pre>
  
  <p>Additionally, I have installed all the build tools for the applicable versions of Android and have had no problem build my applications or using the Appium GUI version by pointing it to the $ANDROID_HOME location. </p>
  
  <p>Why are the errors shown by Appium inconsistant with the fact that the $ANDROID_HOME environment variable is set and that other applications are able to use the Android SDK?</p>