title: Failed to find 'ANDROID_HOME' environment variable in Windows 10 Linux Subsystem
body: <p>I'm trying to run <code>ionic cordova build --release android</code>, but that is getting this error.:</p>
  
  <pre><code>CordovaError: Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.
  Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
  </code></pre>
  
  <p>I'm using Windows 10, but am using the linux subsystem (so am doing all the linux commands etc...). </p>
  
  <p>I went in to my system variables and put in the Android SDK stuff for Windows as seen here:</p>
  
  <p><a href="https://i.stack.imgur.com/WOiT2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WOiT2.png" alt="enter image description here"></a></p>
  
  <p>But when I go back into bash/shell, when I do <code>echo $ANDROID_HOME</code>, it doesn't show the path I set. Should I instead install Android SDK for linux and have it point to that? Or is there someway I can have this ANDROID_HOME path point to my C:/ drive, as I don't think there is a C:/ drive when I"m on the linux subsystem</p>