title: Compiling error during using ant to release android package
body: <p>My Android project has two external libraries: A and B. Using Ant command line to compile the Android project, I encountered the error below. Library A's path is <code>D:\Workspace\library</code>.</p>
  
  <p>I marked Project A as a library in project.properties file, which is the instruction from <a href="https://stackoverflow.com/questions/17506525/android-datepicker-unexpected-top-level-exception-classes-jar-not-found">the post</a>. However, it still doesn't work out. Clearly the compiling treats Project A not as a library and requires the file of classes.dex.</p>
  
  <p>Any more suggestions?</p>
  
  <p><strong>Error:</strong> </p>
  
  <pre><code>[dex] Converting compiled files and external libraries into d:\apk\compile\classes.dex...
         [dx] 
         [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
         [dx] java.io.FileNotFoundException: D:\Workspace\library\bin\classes.jar (系统找不到指定的文件。)
         [dx]     at java.util.zip.ZipFile.open(Native Method)
         [dx]     at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source)
         [dx]     at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source)
         [dx]     at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source)
         [dx]     at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
         [dx]     at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
         [dx]     at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
         [dx]     at com.android.dx.command.dexer.Main.processOne(Main.java:596)
         [dx]     at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
         [dx]     at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
         [dx]     at com.android.dx.command.dexer.Main.run(Main.java:230)
         [dx]     at com.android.dx.command.dexer.Main.main(Main.java:199)
         [dx]     at com.android.dx.command.Main.main(Main.java:103)
         [dx] 
         [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
         [dx] java.io.FileNotFoundException: D:\Workspace\YimianBaseLib\bin\classes.jar (系统找不到指定的文件。)
         [dx]     at java.util.zip.ZipFile.open(Native Method)
         [dx]     at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source)
         [dx]     at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source)
         [dx]     at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source)
         [dx]     at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
         [dx]     at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
         [dx]     at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
         [dx]     at com.android.dx.command.dexer.Main.processOne(Main.java:596)
         [dx]     at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
         [dx]     at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
         [dx]     at com.android.dx.command.dexer.Main.run(Main.java:230)
         [dx]     at com.android.dx.command.dexer.Main.main(Main.java:199)
         [dx]     at com.android.dx.command.Main.main(Main.java:103)
         [dx] 2 errors; aborting
  </code></pre>