title: how to generate apk using ant
body: <p>i want to know how can we generate apk file using ant script. i came to know that we can use "ant debug" command to do that.but when i am running this command it is returning error that " Target "debug" does not exist in the project". i am using ant1.7.0.is it the issue?i have tried given below code to generate apk.</p>
  
  <pre><code> &lt;target depends="build-subprojects,build-project" name="build"&gt;
      &lt;jar destfile="bin/test.apk" basedir="bin/classes" &gt;
    &lt;manifest&gt;
      &lt;attribute name="Main-Class" value="test.Main" /&gt;
    &lt;/manifest&gt;
  &lt;/jar&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>but the generated apk is different from auto generated apk while build the app using eclipse.Please guide me.</p>