在我最近安装了新的Android SDK之后,我在编辑项目代码时无法再查看Javadoc.我收到这条消息:Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc.
我收到所有方法,变量,类等的消息.
我已经通过android更新管理器安装了文档和所有可用的东西.我也试过干净安装android sdk和eclipse,没有运气让javadoc工作.
我也试过手动设置javadoc通过project properties -> javadoc location -> file:/C:/Program Files/Android/android-sdk-windows/docs/reference/没有运气
你有什么建议可以解决这个问题?
cjs*_*rio 23
删除.metadata不是一个好的解决方案,因为您将丢失所有设置.我稍微戳了一下,然后才弄明白.完整的文章在这里:
http://hacksoflife.blogspot.com/2011/02/losing-javadocs-in-eclipse-solution.html
1) In eclipse, right click on your Android project and select Properties
2) On the menu on the left, select "Java Build Path"
3) On the right hand side, select the "tab" labelled "Libraries".
4) Here you should see the Android SDK that you're targeting. For example: "Android 2.2".
5) Click on the arrow to the left of the Android SDK to expand the sublevels.
6) Find "Android.jar" and click on the arrow to the left of that one as well to expand it.
7) You'll see a setting called "Javadoc location". Select that and then click on the "Edit" button.
8) At the top, RESELECT the path to your javadocs. This is usually "path_to_android_sdk/android-sdk-mac_86/docs/reference/". I say RESELECT because even if it's right, you should browse and do it over anyway.
9) Click on "validate". You should be all set now!
Run Code Online (Sandbox Code Playgroud)
我想出了如何解决这个问题。我所要做的就是删除.metadata工作区中的文件夹,然后重新启动 Eclipse。注意:这将清除您所有的 Eclipse 首选项、设置等。您的工作区项目将需要再次添加。
还请考虑以下链接,因为它似乎对大多数查看此链接的人非常有帮助:http ://hacksoflife.blogspot.com/2011/02/losing-javadocs-in-eclipse-solution.html
| 归档时间: |
|
| 查看次数: |
6478 次 |
| 最近记录: |