JavaDoc not working in Android project

I am using Eclipse 3.5.2 to develop Android on Ubuntu 10.04. I have installed:

  • Sun JDK from Ubuntu repositories;
  • Eclipse 3.5.2 (classic) from eclipse.org, unpacked on /opt/eclipse
  • Android SDK from android.com, unpacked on /opt/android-sdk

My problem is that when I'm in an Android project, JavaDoc will not work (neither for Android classes, nor for Java classes). For example, if I hover over DateFormat, I get:

java.text.DateFormat

Note. The javadoc for this element cannot be found either in the connected source or in the attached Javadoc.

However, if I hover over DateFormatwhile I am editing a regular Java project, I get the correct JavaDoc:

java.text.DateFormat

DateFormat is an abstract class for date and time formatting subclasses that formats and parses dates or times regardless of language ....

So JavaDoc there , it just is not accessible from the inside All Android-projects for some strange reason.

Any ideas what could be causing?

+3
source share
2 answers

Just solved it myself, here is what I did (from inside Eclipse):

  • Go to the Window menu → "Android SDK and AVD Manager"
  • Click "Available Packages" in the window that appears.
  • Check out the "Documentation ..." package. Note that I only had one documentation package, and this was for a newer version of the SDK than what I used, but that was good enough.
  • " ".

, , Javadoc API.

/J

+4

. :

  • Project- > Properties- > JavaBuild path- > Libraries
  • Androidxxx
  • android.jar
  • JavaDoc ""
+10

Source: https://habr.com/ru/post/1767154/


All Articles