0
我通過"ant debug"
編譯Android項目(http://developer.android.com/training/basics/firstapp/starting-activity.html)**機器人如何[依賴性] API <= 15:添加annotations.jar到類路徑
...
-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<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
我發現annotations.jar下$ {SDK} \工具\支持和跟蹤在$的 的build.xml {SDK} \工具\螞蟻\下面的build.xml
<echo level="info">Resolving Dependencies for ${ant.project.name}...</echo>
<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}" />
如何添加annotation.jar到classpath? PS:我在D:\myproj\android\MyFirstApp\libs
下添加了annontation.jar
,但仍報告該消息。
謝謝您的回覆。 昨天,我將project.properties中的target = android-10更改爲17,並更改了minSdkVersion = 17 這是成功的。 但是在android-10下怎麼樣?(我想讓它在2.3.3下運行) – user2029088