yaoshi641

Eclipse下加载AndroidSDK源码

在Eclipse下开发Android程序时,智能提示会出现:

Note: The Javadoc for this element could neither be found in the attached source nor the attached Javadoc

是由于AndroidSDK中不包含源码.

下载源码(http://rgruet.free.fr/public/)后.

将源码解压到相应版本的sources目录下.注意sources必须为这个名字.

在Eclipse菜单中Windows-->Preference,打开如下节点

image

1>点New按钮...输入名字,如采用的SDK是2.1版本.可录入Android2.1。此名称并不限定.

2>点Add JARs...按钮 选择相应版本SDK的jar文件.

3>然后打开刚才创建的树形节点,选择Source Attachment 点Edit...按钮

image

此处路径就是刚才解压源码的那个目录.注意必须为文件夹名sources...(我也搞不明白为什么,比如使用source文件夹名称,就不能提示).

点击OK,重启Eclipse...一切搞定.

image

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2021-12-07
  • 2021-12-23
  • 2022-01-15
  • 2021-10-25
  • 2022-12-23
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2021-06-16
  • 2022-02-14
  • 2021-07-15
  • 2021-10-17
  • 2022-01-08
相关资源
相似解决方案