title: Cordova Build Error for Android
body: <p>I have been running through the Cordova tutorial for installation and creating a first app.  After spending the last few hours trying to figure this out I have pretty much reached a dead end.  I'm currently running Ubuntu and trying to build on Android 4.0.0.</p>
  
  <p>I have all of the files listed in the error below already.  In addition to this error I get 3 consecutive popups for non-existent files that say:</p>
  
  <blockquote>
    <p>"Cannot find file '/home/prawg/workspace/hello/list'"</p>
    
    <p>"Cannot find file '/home/prawg/workspace/hello/targets'"</p>
    
    <p>"Cannot find file '/home/prawg/workspace/hello/--compact'"</p>
  </blockquote>
  
  <p>Here is the error:</p>
  
  <blockquote>
    <p>[Error: Please install Android target: "android-22".</p>
    
    <p>Hint: Open the SDK manager by running: /usr/local/bin/android
    You will require:</p>
    
    <ol>
    <li>"SDK Platform" for android-22</li>
    <li>"Android SDK Platform-tools (latest)</li>
    <li>"Android SDK Build-tools" (latest)]</li>
    </ol>
    
    <p>ERROR building one of the platforms: Error: /home/prawg/workspace/hello/platforms/android/cordova/build: </p>
    
    <p>Command failed with exit code 2</p>
    
    <p>You may not have the required environment or OS to build this project</p>
    
    <p>Error: /home/prawg/workspace/hello/platforms/android/cordova/build: Command failed with exit code 2</p>
    
    <p>at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)</p>
    
    <p>at ChildProcess.emit (events.js:98:17)</p>
    
    <p>at maybeClose (child_process.js:766:16)</p>
    
    <p>at Process.ChildProcess._handle.onexit (child_process.js:833:5)</p>
  </blockquote>
  
  <p>Any help on this would be greatly appreciated.</p>