JavaDoc in an Eclipse Android Project

狂风中的少年 提交于 2019-12-17 15:46:40

问题


In our Android project, our code is JavaDoc'd and that generates everything properly. However, any reference to the Android API classes/functions results in a JavaDoc error and a link to the relevant information is not generated. Instead we get plaintext class names. How can we set up Eclipse to turn these into links to the online Android API reference (preferably) or a local copy (if necessary)?


回答1:


If you have the "Documentation for Android" package and the javadoc info still isn't showing up, make sure the Android library settings point to the right folder:

Project -> Settings -> Java Build Path, Libraries tab

Android X.X -> Android.jar -> Javadoc Location:
Should be something like "sdk_root/docs/reference/".

And to view the docs for a class in editor for example:

you should choose show attached java doc in web browser from to popup that appear when hover the cursor on some declaration.




回答2:


Install "Documentation for Android SDK" package using Android SDK and AVD Manager.




回答3:


This answer is new and might not been available on 2010 when the question been asked And these docs include android SDK docs which many developers need and google app engine too

Detailed steps for the above link .. for indigo

middle reference



来源:https://stackoverflow.com/questions/2268183/javadoc-in-an-eclipse-android-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!