您是否嘗試過使用javadocs的ant腳本?將它命名爲javadoc.xml或build.xml以外的東西 - 否則eclipse將選擇它作爲默認構建腳本。從eclipse(RMB on file | Run As | Ant Build
)中或從控制檯:ant -f <file-name.xml>
運行ant腳本。
礦看起來類似這樣:
<project basedir="." default="doc" name="metagloss api docs">
<property
name="android-sdk-docs"
value="/home/blackrax/opt/dev/android-sdk-linux_86/docs/reference"/>
<target name="doc" description="api docs - no piwik" depends="clean, delombok">
<javadoc destdir="docs">
<link offline="true"
href="http://d.android.com/reference"
packagelistLoc="${android-sdk-docs}" />
<fileset dir="src" includes="**/*.java" />
</javadoc>
</target>
<!-- more implementation, any remaining targets -->
</project>
這是否解決'包android.app不存在'問題? – 2011-02-09 17:11:30