title: Cordova android build fails immediately [Error: spawn EACCES]
body: <p>I am just getting started with with Cordova ( PhoneGap ) and trying to build my first project with it, however I am running into a problem with my compilation step- when I try to build ( in tracking down the problem I broke down the <code>build</code> step into <code>prepare</code> and <code>compile</code> and the former works fine as far as I know ) I see this:</p>
  
  <pre><code>~/Projects/MyProject$ cordova compile android
  Compiling app on platform "android" via command "/media/glenatron/local disk/Projects/Cordova/MyProject/platforms/android/cordova/build" 
  { [Error: spawn EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'spawn' }
  </code></pre>
  
  <p>Now from what I can tell this is a permissions problem, but having no Node or Cordova experience yet I am at a loss as to how to troubleshoot it. It looks as though it is trying to spawn another process - maybe the Android SDK? - and it is failing. </p>
  
  <p>Is there a way I can ask Node or Cordova to give me more information on what is going on or is there a log file somewhere that will help me to track down what the problem is?</p>
  
  <p>Edit: I realised cordova has a <code>--verbose</code> switch and when I activated it I get the above output with an additional couple of lines...</p>
  
  <pre><code>Error: spawn EACCES
      at errnoException (child_process.js:980:11)
      at Process.ChildProcess._handle.onexit (child_process.js:771:34)
  </code></pre>
  
  <p>Unfortunately, they don't seem to actually give much more information, like <em>which</em> process it can't start.</p>