Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't see Android SDK javadoc in Eclipse

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.

like image 507
fhucho Avatar asked Jan 18 '11 20:01

fhucho


People also ask

What is Javadoc location in eclipse?

Select "Javadoc location: (None)" and click "Edit..." to the right. In the following window select the second radio box, "Javadoc in archive," then click "Browse..." Start in the folder where you installed the mindsensors Library. Then open the java folder, lib folder, and select mindsensors-javadoc.

Why JDK is required for Android development?

The JDK provides tools, such as the Java compiler, used by IDEs and SDKs for developing Java programs. The JDK also contains a Java Runtime Environment (JRE), which enables Java programs, such as Eclipse, to run on your system.


1 Answers

  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.

like image 129
Rifat Döver Avatar answered Sep 24 '22 16:09

Rifat Döver