title: Cordova build android not working
body: <p>Phonegap has failed to build my android app. </p>
  
  <p>I have followed this tutorial to setup android <a href="https://spring.io/guides/gs/android/#android-dev-env" rel="nofollow noreferrer">https://spring.io/guides/gs/android/#android-dev-env</a></p>
  
  <p>After this process, I run android and the Android SDK Manager is launched, Instead I get this in CMD.</p>
  
  <pre><code>C:\Users\Jamie&gt;android
  **************************************************************************
  The "android" command is deprecated.
  For manual SDK, AVD, and project management, please use Android Studio.
  For command-line tools, use tools\bin\sdkmanager.bat
  and tools\bin\avdmanager.bat
  **************************************************************************
  
  Invalid or unsupported command ""
  
  Supported commands are:
  android list target
  android list avd
  android list device
  android create avd
  android move avd
  android delete avd
  android list sdk
  android update sdk
  </code></pre>
  
  <p>Now I cannot build my phonegap android apps.</p>
  
  <p>Phonegap now throws this and exits with 1, </p>
  
  <pre><code>[INF] [shellscript] [phonegap] executing '''cordova build android'''...
  [INF] [shellscript] 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></pre>
  
  <p>What I am surprised about is that I set ANDROID_HOME  in the link above above
  <a href="https://stackoverflow.com/questions/29818635/phonegap-run-android-not-working-and-no-error-message">This</a> has not worked for me</p>