title: Cordova Android Build Exit Code 8
body: <p>I've been working on a Cordova project for iOS for the last couple of months, and now I want to move over and test the Android portion. I've tried twice of installing the Android SDK, JDK, Ant, and putting them in the Path Environment Variable but I just can't get the app to build. I tried looking around at other questions but couldn't seem to find a definitive answer.</p>
  
  <p>So, when I go to build the Android platform, this is the error that I get:</p>
  
  <pre><code>BUILD FAILED
  C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:720: The following
  error occurred while executing this line:
  C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:734: Compile failed;
  see the compiler error output for details.
  
  Total time: 3 seconds
  
  C:\Users\thomas\Desktop\batapp\BatNetting\platforms\android\cordova\node_modules\q
  \q.js:126
                  throw e;
                        ^
  Error code 1 for command: cmd with args: /s,/c,ant/debug/-f/C:\Users\thomas\Desktop\
  batapp\BatNetting\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absoule.dir=
  ant-gen
  ERROR running one or more of the platforms: Error: C:\Users\thomas\Desktop\batapp\
  BatNetting\platforms\android\cordova\run.bat: Command failed with exit code 8
  You may not have the required environment or OS to run this project
  </code></pre>
  
  <p>I'm really not sure what could be causing this. Like I said, I've tried reinstalling the SDK, Java, Ant and double checked the Path. First, I tried pulling the files from a local Git server, then I removed them and copied them straight from the project I had open on the Mac VM I had been working on. I have also tried using both <code>cordova build android</code> and <code>ionic build android</code>, but both have the same result.</p>
  
  <p>Any help would be greatly appreciated! </p>
  
  <p><b><i>Update</i></b></p>
  
  <p>I've tried creating a new app with ionic and everything in the new app works fine. I've successfully created a project, added Android as a platform, built and ran the Android project. So, it seems to be something with the app that already exists that doesn't seem to be agreeing with me.</p>