`
mmdev
  • 浏览: 12915375 次
  • 性别: Icon_minigender_1
  • 来自: 大连
文章分类
社区版块
存档分类
最新评论

Eclipse开发Android程序时添加javadoc目录 http://www.ideasandroid.com/android/sdk/docs/index.htmlhttp://android.yyable.com/offline.htmlhttp://dl-ssl.google.com/android/repository/docs-2.2_r01-linux.zip

 
阅读更多

Eclipse开发程序看不到API类与函数的声明和注释,还有传入参数的名称时出现,当鼠标悬停在变量上时出现:

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

原因:
没有找到相应的class,如Iterator.class。

如果jdk安装时环境变量设置正确,Eclipse能自动找到src.zip里面的源代码并附加上。

如图:


解决办法:
1. 或者点击Edit Source Lookup Path添加jdk安装包下的src.zip,

如我的路径:D:\Program Files\Java\jdk1.6.0_23\src.zip,等待一会儿会自动找到所需要的class
2. 或者去debug configuration里面的source选项卡手工附加代码
3. 或者在工程属性-》java build path-》libraries,找到你的structs的包,是可以设置源代码的,把源代码路径指到你下载的src包


附:
Android 设置android.jar的javadoc路径
两个可用的android SDK帮助文档镜像:
http://www.ideasandroid.com/android/sdk/docs/index.html
http://android.yyable.com/offline.html
首先下载android的帮助文档,然后解压,地址:
http://dl-ssl.google.com/android/repository/docs-2.2_r01-linux.zip
然后打开eclipse右键你的工程,点属性,
点击 "Java Build Path"里面的Libraries选项卡,打开android.jar中的javadoc设置。
点击"Javadoc location"在右边的地址框里面选中,你解压出来的文件夹中的"reference"目录,
然后重启Eclipse 即可。

Android开发包

http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip

http://dl-ssl.google.com/android/repository/android-2.0.1_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-2.1_r02-windows.zip

http://dl-ssl.google.com/android/repository/android-2.2_r02-windows.zip

https://dl-ssl.google.com/android/repository/android-2.3_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-2.3.1_r02-linux.zip

http://dl-ssl.google.com/android/repository/android-3.0_pre_r01-linux.zip

文档

http://dl-ssl.google.com/android/repository/docs-2.2_r01-linux.zip

http://dl-ssl.google.com/android/repository/docs-Honeycomb_pre_r01-linux.zip

Android开发包

http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip

http://dl-ssl.google.com/android/repository/android-2.0.1_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-2.1_r02-windows.zip

http://dl-ssl.google.com/android/repository/android-2.2_r02-windows.zip

https://dl-ssl.google.com/android/repository/android-2.3_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-2.3.1_r02-linux.zip

http://dl-ssl.google.com/android/repository/android-3.0_pre_r01-linux.zip

文档

http://dl-ssl.google.com/android/repository/docs-2.2_r01-linux.zip

http://dl-ssl.google.com/android/repository/docs-Honeycomb_pre_r01-linux.zip

分享到:
评论

相关推荐

    jetty-http-9.4.43.v20210629-API文档-中英对照版.zip

    赠送原API文档:jetty-http-9.4.43.v20210629-javadoc.jar; 赠送源代码:jetty-http-9.4.43.v20210629-sources.jar; 赠送Maven依赖信息文件:jetty-http-9.4.43.v20210629.pom; 包含翻译后的API文档:jetty-...

    Android代码-android-async-http

    Asynchronous Http Client for Android An asynchronous, callback-based Http client for Android built on top of Apache's HttpClient libraries. Changelog See what is new in version 1.4.9 released on 19th...

    android-async-http 源码

    Asynchronous Http Client ... compile 'com.loopj.android:android-async-http:1.5.0-SNAPSHOT' } Documentation, Features and Examples Full details and documentation can be found on the project page here: ...

    Android代码-spark

    Spark - a tiny web framework for Java 8 NEWS: Spark 2.8.0 is out. Please try it out and report any bugs. ...Javadoc: http://javadoc.io/doc/com.sparkjava/spark-core Getting started c

    IP地理位置查询 JAR

    插件主页:http://www.reremouse.com/content/info/ipseek.html 用户界面演示地址:http://test.reremouse.com/p1/ipseek.jspx 系统在线调用地址:http://test.reremouse.com/IpSeekServlet?ip=www.reremouse.com ...

    Maven更新失败,Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.1

    Maven更新问题 今天Maven在更新的时候发现... http://maven.aliyun.com/nexus/content/repositories/central/ central junit junit Address/ http://jcenter.bintray.com/ central alimaven aliyun maven htt

    spring 最新框架jar

    Run `./import-into-eclipse.sh` or read `import-into-idea.md` as appropriate. > **Note:** Per the prerequisites above, ensure that you have JDK 8 configured properly in your IDE. ### Install all ...

    Android代码-学习RxJava操作符的APP

    > 介绍的操作符并不是全部操作符,大都是我们常用的,想要看全部操作符,请移步:http://reactivex.io/RxJava/javadoc/overview-summary.html > 线程调度的一些说明可能不准确,如发现错误,欢迎提issue,我会及时更正过来 ...

    zxing-3.2.0

    由于资源太大,每次只允许我上传60M,所以一共有...(http://zxing.appspot.com/generator) * [Javadoc](http://zxing.github.io/zxing/apidocs/) * [Documentation Site](http://zxing.github.io/zxing/) * [Google+]...

    Android代码-clarifai-java

    Read the full Javadocs at: https://jitpack.io/com/github/clarifai/clarifai-java/2.2.0/javadoc/ NOTE: If you are planning to contribute to this API client, please see the CONTRIBUTING.md file. ...

    jetty-io-9.4.43.v20210629-API文档-中英对照版.zip

    赠送原API文档:jetty-io-9.4.43.v20210629-javadoc.jar; 赠送源代码:jetty-io-9.4.43.v20210629-sources.jar; 赠送Maven依赖信息文件:jetty-io-9.4.43.v20210629.pom; 包含翻译后的API文档:jetty-io-9.4.43.v...

    Android代码-Mybatis-PageHelper

    MyBatis Pagination - PageHelper ...New JavaDoc https://apidoc.gitee.com/free/Mybatis_PageHelper Method API: https://apidoc.gitee.com/free/Mybatis_PageHelper/com/github/pagehelper/page/PageMet

    JDK 8 apidoc 带完整索引和目录 高清完整CHM版

    最新版 JDK 8.0 英文版帮助文档, 带完整的索引和目录,方便查询。 附上该文档的制作软件源代码: https://github.com/subchen/javadoc.chm/ 更新了首页链接错误。 最新版 JDK 8.0 英文版帮助文档, 带完整的索引和...

    jetty-util-9.4.43.v20210629-API文档-中文版.zip

    赠送原API文档:jetty-util-9.4.43.v20210629-javadoc.jar; 赠送源代码:jetty-util-9.4.43.v20210629-sources.jar; 赠送Maven依赖信息文件:jetty-util-9.4.43.v20210629.pom; 包含翻译后的API文档:jetty-util-...

    httpcore-4.4.15-API文档-中英对照版.zip

    赠送原API文档:httpcore-4.4.15-javadoc.jar; 赠送源代码:httpcore-4.4.15-sources.jar; 赠送Maven依赖信息文件:httpcore-4.4.15.pom; 包含翻译后的API文档:httpcore-4.4.15-javadoc-API文档-中文(简体)-英语...

    javassist-3.23.1-GA.jar中文-英文对照文档.zip

    解压 【***.jar中文文档.zip】,再解压其中的 【***-javadoc-API文档-中文(简体)版.zip】,双击 【index.html】 文件,即可用浏览器打开、进行查看。 # 特殊说明: ·本文档为人性化翻译,精心制作,请放心使用。...

    spring-framework-4.1.2.RELEASE-docs

    spring-framework-4.1.2.RELEASE-docs.zip 中 主要包含两项 一、spring-framework-4.1.2.RELEASE-javadoc-api 1. 即——API 2. 可阅读的格式为 "多页html" 二、spring-framework-4.1.2.RELEASE-reference 1. 即...

    aviator-5.1.4-API文档-中英对照版.zip

    赠送原API文档:aviator-5.1.4-javadoc.jar; 赠送源代码:aviator-5.1.4-sources.jar; 赠送Maven依赖信息文件:aviator-5.1.4.pom; 包含翻译后的API文档:aviator-5.1.4-javadoc-API文档-中文(简体)-英语-对照版....

    simpleclient_tracer_otel-0.12.0.jar中文-英文对照文档.zip

    解压 【***.jar中文文档.zip】,再解压其中的 【***-javadoc-API文档-中文(简体)版.zip】,双击 【index.html】 文件,即可用浏览器打开、进行查看。 # 特殊说明: ·本文档为人性化翻译,精心制作,请放心使用。...

    spring-data-keyvalue-2.3.9.RELEASE-API文档-中文版.zip

    赠送原API文档:spring-data-keyvalue-2.3.9.RELEASE-javadoc.jar; 赠送源代码:spring-data-keyvalue-2.3.9.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-data-keyvalue-2.3.9.RELEASE.pom; 包含翻译后...

Global site tag (gtag.js) - Google Analytics