title: Cordova and setting Android using command line
body: <p>I am trying to migrate my existing project from cordova 2.1 to the latest, 3.1 which can be installev vía command line,</p>
  <p>I already have the Android SDK installed,</p>
  <p>So:</p>
  <pre><code>sudo npm install -g cordova // All good
  cordova create hello com.example.hello HelloWorld // All good
  cordova platform add android // Then it fires:
  
  Checking Android requirements...
  [Error: The command `android` failed. Make sure you have the latest Android SDK installed, and the `android` command (inside the tools/ folder) added to your path. Output: ]
  </code></pre>
  <p>So I installed Macports and tried:</p>
  <pre><code>sudo port install android
  </code></pre>
  <p>Which logs:</p>
  <pre><code>Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
  Warning: Xcode does not appear to be installed; most ports will likely fail to build.
  ---&gt;  Cleaning android
  ---&gt;  Scanning binaries for linking errors: 100.0%
  ---&gt;  No broken files found.
  </code></pre>
  <p>Any idea what am I missing here?</p>