Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.

在Eclipse中开发Android项目时,鼠标停放在想要查看帮助文档的类上面,发现没有显示帮助文档,显示了下面一句话:

Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.

这是因为Android.jar文件的Javadoc location属性没有设置好,按照下面不走进行操作:

(1) 右击项目名称,选择Properties-->Java Build Path;

(2)找到android.jar文件,并展开,可以看见Javadoc location没有设置;

(3)选中Javadoc location,点击右边的Edit按钮,选择Javadoc路径并确定,Javadoc路径一般为/sdk/docs/reference/(如我的机器上是file:/E:/HZHI/adt-bundle-windows-x86_64-20140702/sdk/docs/reference/);

(4)可以看到,设置Javadoc location成功,再次确定。

现在,鼠标停放在想要查看帮助文档的类上面,就会看见显示了帮助文档。

如果你的/sdk/docs/下面一片空白,没有东西,可以运行SDK Manager,在Documention for Android SDK前面打钩下载(下图中已经下载)。

时间: 2024-10-10 21:17:11

Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.的相关文章

This element neither has attached source nor attached Javadoc

Android开发在Eclipse提示信息This element neither has attached source nor attached Javadoc 摘要: 在使用Eclipse开发Android程序过程中,发现鼠标停放在想要查看帮助的类名上面,提示如下信息:Note:ThiselementneitherhasattachedsourcenorattachedJavadocandhencenoJavadoccouldbefound.出现这个原因,一般是因为android.jar包

【JAVA】【Eclipse】出现This element neither has attached source nor attached Javadoc...的解决方法

This element neither has attached source nor attached Javadoc and hence no Javadoc could be found Eclipse有直接查看Java文档和类库源码的功能,不过得手工添加才行,下面对如何在Eclipse中添加java文档和类库源码进行总结. 1. Window->Pereferences...打开参数选择对话框,展开Java节点,单击"Installed JREs",此时右边窗口会显示已

自动化脚本过程中出现This element neither has attached source nor attached Javadoc...的解决方法

This element neither has attached source nor attached Javadoc and hence no Javadoc could be found Eclipse有直接查看java文档和类库源码的功能,不过得手工添加才行,下面对如何在Eclipse中添加java文档和类库源码进行总结. 1. Window->Pereferences...打开参数选择对话框,展开Java节点,单击“Installed JREs",此时右边窗口会显示已经加载的j

This element neither has attached source nor attached Javadoc and hence no Javadoc could be found

This element neither has attached source nor attached Javadoc and hence no Javadoc could be found Eclipse有直接查看Java文档和类库源码的功能,不过得手工添加才行,下面对如何在Eclipse中添加java文档和类库源码进行总结. 1. Window->Pereferences...打开参数选择对话框,展开Java节点,单击“Installed JREs",此时右边窗口会显示已经加载的j

Note:This element has no attached source and the javadoc could not be found in the attached javadoc

像Microsoft Visual Studio 一样,使用Eclipse编写java代码时,将鼠标放在相应方法或字段等元素上时,会有对应的说明或提示. 不过,常出现下面的问题: Note:An exception occurred while getting the javadoc.see log for details. Note:This   element   neither   has   attached   source   nor   attached   Javadoc   a

java 提示----This element has no attached source and the Javadoc could not be found in the attached Javadoc

This element has no attached source and the Javadoc could not be found in the attached Javadoc. [注意:此元素没有附加源代码,也无法在附加的 Javadoc 中找到 Javadoc.] 解决方法: 用eclipse时,用鼠标在代码上移动时,尤其是当鼠标移动到方法名上的时候,就会在鼠标附近自动弹出一个信息栏,里面写着这个方法是在哪个类里定义的,以及这个方法的类型,注释. 今天打开Eclipse发现把鼠标

Android开发技巧之查看外部依赖jar的源码_android private libralies does not allow modifications to source

在Eclipse中开发android的应用程序时,有时想查看函数的内部实现,但是当在函数上点击ctrl和鼠标左键的时候, 往往出现如下提示: Class File Editor Source not found The JAR of this class file belongs to container 'Android'  which does not allow modifications to source attachments on its entries. 最普遍常见的是andro

【转载】解决使用Eclipse中调用javadoc的问题

出处:http://blog.163.com/[email protected]/blog/static/6256726420096259420870/ 像Microsoft Visual Studio 一样,使用Eclipse编写java代码时,将鼠标放在相应方法或字段等元素上时,会有对应的说明或提示. 不过,常出现下面的问题: Note:An exception occurred while getting the javadoc.see log for details. Note:This

【转】使用Eclipse,将鼠标放在相应方法或字段等元素上时,无法显示提示

使用Eclipse编写java代码时,将鼠标放在相应方法或字段等元素上时,会有对应的说明或提示. 不过,常出现下面的问题: Note:An exception occurred while getting the javadoc.see log for details. Note:This   element   neither   has   attached   source   nor   attached   Javadoc   and      hence   no   informa