title: cordova: Error: Android SDK not found
body: <p>I want to run ionic code with Genymotion as emulator. I ma using windows 10. My C drive is run out of space and I installed everything in D drive.</p>
  
  <p>However, when I run ionic run android, I get the <code>Error: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.</code></p>
  
  <p>Firstly, I have the sdk directly at <code>D:\sdk-tools-windows-3859397\platform-tools</code> as the picture below:
  <a href="https://i.stack.imgur.com/A1hQ7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A1hQ7.png" alt="enter image description here"></a></p>
  
  <p>The environment variables is set as below:<a href="https://i.stack.imgur.com/viIsu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/viIsu.png" alt="enter image description here"></a></p>
  
  <p>When run adb at the path, it can run successfully<a href="https://i.stack.imgur.com/KLhpG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KLhpG.png" alt="enter image description here"></a>
  I also set the SDk with both default and customs ANdroid SDk tools, but both return same error<a href="https://i.stack.imgur.com/4Cpo8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Cpo8.png" alt="enter image description here"></a></p>
  
  <p>What else that I missed out that give the error?<a href="https://i.stack.imgur.com/XShCw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XShCw.png" alt="enter image description here"></a></p>
  
  <p>UPDATES:
  as Djinggy suggest,environment variables set to a level up and path set for platform-tools and tools, however, <strong>the same error still there</strong> with <code>ionic run android</code>
  <a href="https://i.stack.imgur.com/2QGxU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2QGxU.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/r8IR4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r8IR4.png" alt="enter image description here"></a></p>