title: On Windows Linux Subsystem, the Android SDK directory does not exist
body: <p>I have been running <code>react native</code> for a while on <code>windows 10</code> but decided to install the <code>ubuntu subsystem</code> to continue my development as I prefer linux for dev work.</p>
  
  <p>After installing <code>ubuntu</code> and trying to build my <code>react native</code> app I get this error.</p>
  
  <blockquote>
    <p>The SDK directory
    /mnt/c/Projects/AppName/android/C:\Users\UserName\AppData\Local\Android\Sdk'
    does not exist.</p>
  </blockquote>
  
  <p>The path is strange looking as it has my current path concatenated with the actual location of my android sdk on my windows file system (but not the path linux needs as it uses <code>/mnt/c/</code> instead of <code>C:\</code>). That looks pretty wrong.</p>
  
  <p>Here's some info about my system:</p>
  
  <pre><code>echo $ANDROID_HOME 
  /mnt/c/Users/UserName/AppData/Local/Android/sdk/
  
  less android/local.properties
  sdk.dir=C\:\\Users\\UserName\\AppData\\Local\\Android\\Sdk
  </code></pre>
  
  <p>It seems like you should be able to link to the Windows install of the android sdk, if it used my <code>ANDROID_HOME</code> I think it would work. But something tells me I might need to install the sdk separately on ubuntu. I'd like to avoid that for hard disk space reasons.</p>
  
  <p>I'm hoping to be able to keep react native working on windows and in the ubuntu subsystem if possible as I'm not sure if there will be some issue in the future for running react native on ubuntu. It currently works great on windows 10 so... not trying to break that. </p>
  
  <p>Thoughts?</p>