Javadoc in Eclipse failing to recognize packages

前端 未结 8 1503
傲寒
傲寒 2020-11-27 15:23

Thanks to this thread, I was able to get Javadoc links to work for my Android project within Eclipse on Windows. Specifically, \"{@link android.widget.Toast}\" is currently

8条回答
  •  遥遥无期
    2020-11-27 15:44

    Adding -classpath parameter in the last screen of "Generate Javadoc..." wizard did not work for me: I got an error message saying that -classpath parameter can only be specified once.

    Not really a solution, but a workaround:

    • In the "Generate Javadoc..." wizard, check the option "Save the settings of this Javadoc export as an Ant script". This generates javadoc.xml file in project directory
    • Edit javadoc.xml file and edit classpath attribute. Specifically, add "/path/to/sdk/platforms/android-##/android.jar" there and any other jars that you get warning messages about
    • Generate the javadoc with: ant -buildfile javadoc.xml. For convenience, I put this line in a javadoc.sh shell script.

提交回复
热议问题