title: My build fails when I use Ant to build and Android project with multiple libraries
body: <p>I have an app which contains a total of 10 projects: 3 java projects, 6 Android projects, and one Android app project. I can build them in Eclipse without errors, but when I build them in Jenkins, the build fails during compilation of the last project. </p>
  
  <p>Here are the shell commands that I'm using to do the build. </p>
  
  <p>Just to be clear, DrawCard and CameraModule are libraries that are invoked by CC_library3.0.3, and CC_library3.0.3 is a library project invoked by MainApp.</p>
  
  <pre><code>android update lib-project -p ./DrawCard  -t "android-15"  
  android update lib-project -p ./AppStar  -t "android-15"
  android update lib-project -p ./CameraModule   -t "android-15"
  android update lib-project -p ./CC_library3.0.3   -t "android-15" 
  android update lib-project -p ./ISAd  -t "android-15"
  android update lib-project -p ./Payment  -t "android-15"
  android update project -p ./MainApp -t "android-15" -l ../CC_library3.0.3 -l ../ISAd -l ../Payment
  
  echo 'source.dir=../android-vcard/src' &gt; ./DrawCard/ant.properties
  echo 'source.dir=../TianShu/src' &gt; ./MainApp/ant.properties
  echo 'source.dir=../Log4A/src' &gt;&gt; ./MainApp/ant.properties
  cd ./MainApp
  ant all clean debug
  </code></pre>
  
  <p>After those commands, when building MainApp, the process fails with this message:</p>
  
  <pre><code>[javac]Compiling 22 source files to /var/lib/jenkins/foobar/bin/classes
  [javac]A.java : package a.b.c does not exist
  ....
  [javac]B.java : can not find symble
  
  .....
  BUILD FAILED
  </code></pre>
  
  <p>I don't understand why I'm getting this error. I checked the <code>/bin</code> folder of all 6 lib-projects. Each contains a <code>classes.jar</code> file. Why is this happening and what can I do about it?</p>