title: Android: compile APK with ANT, common libraries from outside the project folder
body: <p>I'm running a web service that allows users to create simple android apps. I'm using ANT to automate the building of the APKs:</p>
  
  <ol>
  <li>Create the project folder (eclipse-style)</li>
  <li>Copy libs (ad sdks) to the libs folder </li>
  <li>Run ant</li>
  </ol>
  
  <p>The problem is that even if the libs are always the same for all apps, they are pre-dexed for every single app and the build process takes much longer than needed. I understand this is the normal behavior for the setup I have now.</p>
  
  <p>What I'd like to do is keep all the libs in a common folder on the server and tell ant to use those, preventing the pre-dexing process to happen for each app.</p>
  
  <p>I'm not sure what settings to use in ant.properties or build.xml to make this happen.</p>
  
  <p>Thanks!</p>