I am trying to create documentation for my Android project using javadoc and doclava. I downloaded the doclava jar and I am trying to create a doc via Project-> generate javadoc.
If I understand the mechanism, I have two ways to tell javadoc to use the docava doclet:
1) Select "use custom document" with these options:
Doclet Name: com.google.doclava.Doclava
Doclet Path: /full/path/of/my/doclava/dir/doclava-1.0.6.jar
2) Select "use standard doclet", and then in the "javadoc options" parameters, put:
-doclet com.google.doclava.Doclava
-docletpath $ {/ full / path / of / my / doclava / dir / doclava-1.0.6.jar}
I ran into these problems:
If I use the first method, I can successfully generate the document, but it seems that the Android classes are not recognized. I get errors when doclava parses "import android.util.SparseArray"
If I use the second method, I get this error: "javadoc: error - Cannot find class doclet com.google.doclava.Doclava 1 error"
Actually: if I do not use Doclava, my documentation is correctly generated with links to android apis.
I just want to create my javadoc project with links to the android / java file (for android / java objects) and have an โAndroid lookโ.
source share