title: android how to [dependency] API<=15: Adding annotations.jar to the classpath
body: <p>I compile android project through <code>"ant debug"</code>.(<a href="http://developer.android.com/training/basics/firstapp/starting-activity.html" rel="nofollow">http://developer.android.com/training/basics/firstapp/starting-activity.html</a>)**</p>
  
  <pre><code>...
  -build-setup:
       [echo] Resolving Build Target for MyFirstApp...
  [gettarget] Project Target:   Android 2.3.3
  [gettarget] API level:        10
       [echo] ----------
       [echo] Creating output directories if needed...
      [mkdir] Created dir: D:\myproj\android\MyFirstApp\bin
      [mkdir] Created dir: D:\myproj\android\MyFirstApp\bin\res
      [mkdir] Created dir: D:\myproj\android\MyFirstApp\gen
      [mkdir] Created dir: D:\myproj\android\MyFirstApp\bin\classes
      [mkdir] Created dir: D:\myproj\android\MyFirstApp\bin\dexedLibs
       [echo] ----------
       [echo] Resolving Dependencies for MyFirstApp...
  [dependency] Library dependencies:
  [dependency] No Libraries
  [dependency]
  [dependency] ------------------
  [dependency] API&lt;=15: Adding annotations.jar to the classpath.
       [echo] ----------
       [echo] Building Libraries with 'debug'...
     [subant] No sub-builds to iterate on
  </code></pre>
  
  <blockquote>
    <p>I found the annotations.jar under ${sdk}\tools\support and trace the
    build.xml under ${sdk}\tools\ant\build.xml hereunder</p>
  </blockquote>
  
  <pre><code>&lt;echo level="info"&gt;Resolving Dependencies for ${ant.project.name}...&lt;/echo&gt;
          &lt;dependency
                  libraryFolderPathOut="project.library.folder.path"
                  libraryPackagesOut="project.library.packages"
                  libraryManifestFilePathOut="project.library.manifest.file.path"
                  libraryResFolderPathOut="project.library.res.folder.path"
                  libraryBinAidlFolderPathOut="project.library.bin.aidl.folder.path"
                  libraryRFilePathOut="project.library.bin.r.file.path"
                  libraryNativeFolderPathOut="project.library.native.folder.path"
                  jarLibraryPathOut="project.all.jars.path"
                  targetApi="${project.target.apilevel}"
                  verbose="${verbose}" /&gt;
  </code></pre>
  
  <p>HOW TO ADD annotation.jar TO THE CLASSPATH?
  PS:I have added <code>annontation.jar</code> under <code>D:\myproj\android\MyFirstApp\libs</code>,But still report that message. </p>