title: Android Ant build -- How to compile against a JAR but exclude it from classes.dex?
body: <p>I am compiling an Android APK using Ant.  The APK will be installed in an environment that has a jar file (call it foo.jar).  So the APK will need to know about foo.jar during compilation, but I don't want it included in classes.dex (since it will already be available).</p>
  
  <p>Please note that this is not just a matter of putting the jar in the 'libs' directory. While that fixes the 'compile' part of the problem, it does not solve the problem of keeping the jar out of classes.dex.</p>
  
  <p>Thanks in advance for your help.</p>