title: Target does not exist error building an Ant project for a Cordova app on OS X
body: <p>When I try to build a phonegap/cordova app with command:</p>
  
  <pre><code>cordova build android
  </code></pre>
  
  <p>I'm getting an error:</p>
  
  <pre><code>BUILD FAILED
  Target "debug" does not exist in the project "CordovaApp". 
  
  Total time: 0 seconds
  
  /path_to_app/platforms/android/cordova/node_modules/q/q.js:126
                      throw e;
                            ^
  Error code 1 for command: ant with args: debug,-f,/path_to_app/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
  ERROR building one of the platforms: Error: /path_to_app/platforms/android/cordova/build: Command failed with exit code 8
  You may not have the required environment or OS to build this project
  </code></pre>
  
  <p>I think it can be related with my <code>~/Library/Android/sdk/tools/ant/build.xml</code> file - I maybe accidentally mess it up - could anyone provide me code from that file?</p>
  
  <p>Please help.</p>