title: cordova/phonegap platform android
body: <p>Ok here it goes, I want to use phonegap alright? Yeah it sounds good, awesome yeah whatever. Oh important thing, I'm running on windows 7 x64. Right we got that cleared out. </p>
  
  <h2>FAQ</h2>
  
  <p>Q1: Did I get java sdk (yeah not jre - jdk!)? Yes got it!</p>
  
  <pre><code>C:\Program Files\Java\jdk1.7.0_51
  </code></pre>
  
  <p>Q2: What about ant? That too!</p>
  
  <pre><code>C:\apache-ant-1.9.3
  </code></pre>
  
  <p>Q3: Ok nice, then where's the android sdk? Everything right here: (got the android developer tools)</p>
  
  <pre><code>C:\adt
  </code></pre>
  
  <p>Q4: Hmm alright... Wait let me cut you right there. The system variables, ah yup, got them!</p>
  
  <pre><code>ANDROID_HOME --&gt; C:\adt\sdk
  ANT_HOME --&gt; C:\apache-ant-1.9.3
  JAVA_HOME --&gt; C:\Program Files\jdk1.7.0_51
  XCOPY --&gt; C:\Windows\System32
  PATH --&gt; %XCOPY%;%ANDROID_HOME%\bin;%ANT_HOME%\bin;%JAVA_HOME%\bin;C:\Program Files\nodejs;C:\adt\sdk\platform-tools;C:\adt\sdk\tools
  </code></pre>
  
  <h2>MY PROBLEM</h2>
  
  <p>1st problem: I run the <code>android</code> command but nothing works.</p>
  
  <p>2nd problem: Let me break it into steps: </p>
  
  <ol>
  <li><code>cordova platform add android</code> that's working</li>
  <li><code>phonegap install android</code> Not Working</li>
  <li><code>phonegap run android</code> Nope</li>
  </ol>
  
  <p>Whichever I try running in order to compile. It just won't work... I get the following error:</p>
  
  <pre><code>$ phonegap local run android
  [phonegap] compiling Android...
     [error] An error occurred while building the android project.Error executing "ant debug -f "C:\Users\Mark\Documents\Projects\buddytalk\platforms\android\build.xml"":
  BUILD FAILED
  C:\adt\sdk\tools\ant\build.xml:932: The following error occurred while executing this line:
  C:\adt\sdk\tools\ant\build.xml:950: null returned: 1
  
  Total time: 11 seconds
  </code></pre>
  
  <p>ant seems to be the problem right now... </p>
  
  <p>Thanks in advance :) </p>