title: Installing Phonegap on Windows 7 : The command 'android' failed
body: <p>I followed the documentation and some tutorials on Phonegap to install it on Windows 7, but I'm stuck.</p>
  
  <p>So far, I've installed Java 1.7.0_06, Ant-Apache 1.9.2, Eclipse, Android SDK with Android 4.3 (API 18), all Tools and all Extras in the SDK Manager), NodeJS 0.10.18 and Git.</p>
  
  <p>I wrote all paths in the PATH variables in Windows it's look like this (decomposed) :</p>
  
  <pre><code>F:\nodejs;
  F:\android-sdk\sdk\platform-tools;
  F:\android-sdk\sdk\tools;
  %JAVA_HOME%\bin;
  %ANT_HOME%\bin;
  C:\Program Files (x86)\Git\bin
  </code></pre>
  
  <p>Where %JAVA_HOME% and %ANT_HOME% have the right path, they give me the their version when I type java -version or ant -version in the CLI</p>
  
  <p>So I went in the CLI, I installed Phonegap with the following command :</p>
  
  <pre><code>npm install -g phonegap
  </code></pre>
  
  <p>It give me the 3.0.0-0.14.3 version when I type phonegap -v.</p>
  
  <p>Now, I went to my folder F:\apps and I created a new project with the following command :</p>
  
  <pre><code>phonegap create hello com.example.hello HelloWorld
  </code></pre>
  
  <p>Everything goes well, the files are created.</p>
  
  <p>I went in the 'hello' folder, and I typed this command :</p>
  
  <pre><code>phonegap local build android
  </code></pre>
  
  <p>And there come the problem, I get this error :</p>
  
  <pre><code>[phonegap] adding the Android platform...
  [error] The command `android` failed. Make sure you have the latest AndroidSDK installed, and the `android` command (inside the tools/ folder) added to your path. Output:
  </code></pre>
  
  <p>I tried this command too :</p>
  
  <pre><code>phonegap build android
  </code></pre>
  
  <p>But it get stuck at this, nothing happen next :</p>
  
  <pre><code>[phonegap] detecting Android SDK environment...
  [phonegap] using the remote environment
  [phonegap] compressing the app...
  </code></pre>
  
  <p>After lot's of research, I don't know what I can do anymore to find the problem, and I'm quiet new with all this CLI... So yeah, do you have any idea why the command 'android' failed ?</p>
  
  <p>Thanks</p>