JavaDoc generation in Android Studio: NullPointerException -
when trying generate javadoc in android studio, acts , shows countless errors concerning non-existing packages , unknown symbols (mostly android-related stuff).
finally error message:
standard doclet version 1.7.0_55 building tree packages , classes... java.lang.nullpointerexception @ com.sun.tools.javadoc.typemaker.gettype(typemaker.java:83) @ com.sun.tools.javadoc.typemaker.gettype(typemaker.java:44) @ com.sun.tools.javadoc.classdocimpl.superclasstype(classdocimpl.java:496) @ com.sun.tools.doclets.internal.toolkit.util.util.getallinterfaces(util.java:459) @ com.sun.tools.doclets.internal.toolkit.util.util.getallinterfaces(util.java:497) @ com.sun.tools.doclets.internal.toolkit.util.classtree.processtype(classtree.java:194) @ com.sun.tools.doclets.internal.toolkit.util.classtree.buildtree(classtree.java:146) @ com.sun.tools.doclets.internal.toolkit.util.classtree.<init>(classtree.java:91) @ com.sun.tools.doclets.internal.toolkit.abstractdoclet.startgeneration(abstractdoclet.java:123) @ com.sun.tools.doclets.internal.toolkit.abstractdoclet.start(abstractdoclet.java:83) @ com.sun.tools.doclets.formats.html.htmldoclet.start(htmldoclet.java:63) @ com.sun.tools.doclets.standard.standard.start(standard.java:39) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ com.sun.tools.javadoc.docletinvoker.invoke(docletinvoker.java:280) @ com.sun.tools.javadoc.docletinvoker.start(docletinvoker.java:160) @ com.sun.tools.javadoc.start.parseandexecute(start.java:397) @ com.sun.tools.javadoc.start.begin(start.java:167) @ com.sun.tools.javadoc.main.execute(main.java:59) @ com.sun.tools.javadoc.main.main(main.java:49) 342 warnings javadoc exited exit code 1
once in javadoc generation wizard
- check include jdk , library sources
add line in front of
other command line arguments
-encoding utf-8 -bootclasspath /path/to/sdk/platforms/android-##/android.jar
Comments
Post a Comment