title: Setting up NativeScript on Mac. "The ANDROID_HOME environment variable is not set or it points to a non-existent directory
body: <p>I'm trying to get started with NativeScript, but when I try to run <code>tns run android</code>, it gives me:</p>
  
  <pre><code>$ tns run android
  The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.
  </code></pre>
  
  <p>I have already setup ANDROID_HOME in my ~/.bash_profile</p>
  
  <pre><code>$ echo $ANDROID_HOME
  /Users/mb102/Library/Andriod/sdk
  </code></pre>
  
  <p>This path matches what's in Android Studio manager, where I've also downloaded and setup a device:</p>
  
  <pre><code>$ tns devices
  
  Connected devices &amp; emulators
  Searching for devices...
  ┌───┬──────────────────────┬──────────┬───────────────────┬──────────┬───────────┐
  │ # │ Device Name          │ Platform │ Device Identifier │ Type     │ Status    │
  │ 1 │ sdk_google_phone_x86 │ Android  │ emulator-5554     │ Emulator │ Connected │
  └───┴──────────────────────┴──────────┴───────────────────┴──────────┴───────────┘
  </code></pre>
  
  <p>Is there anything more I ought to do?</p>