title: Cordova: You may not have the required environment or OS to run this project
body: <p>On Linux Mint 17.1 x86_64, Cordova v4.3.0 gives this error:</p>
  
  <pre><code>$ cordova run android
  
  Running command: /home/naman/test/platforms/android/cordova/run 
  WARNING : No target specified, deploying to emulator
  WARNING : no emulator specified, defaulting to Sample
  Waiting for emulator...
  Booting up emulator (this may take a while)....BOOT COMPLETE
  
  /home/naman/test/platforms/android/cordova/node_modules/q/q.js:126
                  throw e;
                        ^
  Error: ENOENT, no such file or directory '/opt/software/android-sdk/tools/tools/lib/build.template'
      at Object.fs.openSync (fs.js:432:18)
      at Object.fs.readFileSync (fs.js:286:15)
      at /home/naman/test/platforms/android/cordova/lib/build.js:129:40
      at _fulfilled (/home/naman/test/platforms/android/cordova/node_modules/q/q.js:798:54)
      at self.promiseDispatch.done (/home/naman/test/platforms/android/cordova/node_modules/q/q.js:827:30)
      at Promise.promise.promiseDispatch (/home/naman/test/platforms/android/cordova/node_modules/q/q.js:760:13)
      at /home/naman/test/platforms/android/cordova/node_modules/q/q.js:574:44
      at flush (/home/naman/test/platforms/android/cordova/node_modules/q/q.js:108:17)
      at process._tickCallback (node.js:415:13)
  ERROR running one or more of the platforms: Error: /home/naman/test/platforms/android/cordova/run: Command failed with exit code 8
  You may not have the required environment or OS to run this project
  </code></pre>
  
  <p>PATH variable seems to be alright (the path for SDK is correct):</p>
  
  <pre><code>$ echo $PATH
  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/software/android-sdk/tools:/opt/software/android-sdk/platform-tools
  </code></pre>
  
  <p>I installed it using :</p>
  
  <pre><code>sudo apt-add-repository ppa:cordova-ubuntu/ppa
  sudo apt-get update
  sudo apt-get install cordova-cli
  npm install -g cordova
  </code></pre>
  
  <p>The installation went smoothly and the project was created without any error.
  Am I missing some dependency?</p>