简体   繁体   English

无法在Android Studio中生成Javadoc

[英]Fail to generate Javadoc in android studio

I am having a trouble to generate the javadoc in android studio. 我在Android Studio中生成javadoc时遇到麻烦。 I refered this link as well even the issue is not resolved. 即使问题没有解决,我也引用了此链接。 Unfortunately I can not find a solution. 不幸的是我找不到解决方案。

Javadoc fails with class file for java.lang.FunctionalInterface not found Javadoc失败,找不到java.lang.FunctionalInterface的类文件

Error is : 错误是:

javadoc: error - com.sun.tools.doclets.internal.toolkit.util.DocletAbortException: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.FunctionalInterface not found

In other command line arguments : -bootclasspath "C:\\Program Files\\Java\\jre7\\lib\\rt.jar";"path\\android-sdk\\platforms\\android-23\\android.jar" 在其他命令行参数中:-bootclasspath“ C:\\ Program Files \\ Java \\ jre7 \\ lib \\ rt.jar”;“ path \\ android-sdk \\ platforms \\ android-23 \\ android.jar”

Is there any other solution for this. 还有其他解决方案吗? OR Did I miss something to add. 还是我错过了要添加的东西。

The other solution is to use Android SDK that suppots Java 8 features. 另一个解决方案是使用支持Java 8功能的Android SDK。 I installed in Android Studio SDK with API level 25 and it magically worked. 我在API级别为25的Android Studio SDK中安装了它,并且神奇地工作了。 Also I didn't have to change SKD version in project. 另外,我不必在项目中更改SKD版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM