本文介绍了我在Eclipse中看不到Android SDK javadoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Eclipse Helios开发Android。我使用最新的ADT插件8.0.1。以前,我可以看到方法javadoc的描述,当我的鼠标移动方法名称,等待大约一秒钟。现在它由于某种原因停止工作。

解决方案

  1. 在eclipse中,右键单击您的Android项目选择属性

  2. 在左侧的菜单上,选择Java Build Path

  3. 右侧选择标签为图书馆。

  4. 您应该看到要定位的Android SDK。例如:Android 2.2。

  5. 点击Android SDK左侧的箭头,展开子级别。

  6. 查找Android。 jar,然后点击左侧的箭头,然后展开它。

  7. 您将看到一个名为Javadoc位置的设置。选择它,然后单击编辑按钮。

  8. 在顶部,RESELECT到您的javadoc的路径。这通常是path_to_android_sdk / android-sdk-mac_86 / docs / reference /。我说RESELECT,因为即使是对的,你也应该浏览并做。

  9. 点击验证。您现在应该全部设置!

正如本文中所述感谢Chris



由于某种原因,它是添加一个静态的Windows操作系统路径,从D开始:\ ...
这也纠正了所有的SDK目标。


I am developing for Android in Eclipse Helios. I'm using the latest ADT plugin 8.0.1. Previously, I could see method javadoc description, when moving my mouse over a method name and waiting for about a second. Now it stopped working for some reason.

解决方案
  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!

As it is told in this article http://hacksoflife.blogspot.com/2011/02/losing-javadocs-in-eclipse-solution.html Thanks to Chris

For some reason it is adding an static windows OS path starting with D:\...This also correct all SDK targets.

这篇关于我在Eclipse中看不到Android SDK javadoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 19:41