Javadoc generation failed. Generated Javadoc options
FAILURE: Build failed with an exception.
-
What went wrong: Execution failed for task ':library:androidJavadocs'.
Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/home/malin/github_demo/Android-Universal-Image-Loader/library/build/tmp/androidJavadocs/javadoc.options'
-
Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
remove all html formatted tags within your method documentations in some classes of your project. referring to this answer: http://stackoverflow.com/questions/26552279/gradle-build-fails-with-javadoc-nullpointerexception
you maybe add code to gradle with library :
tasks.withType(Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') options.addStringOption('encoding', 'UTF-8') options.addStringOption('charSet', 'UTF-8') }
@Tamicer add tasks.withType....放在gradle的那个位置 是root gradle 还是library 的gradle
@zxp0505 放在library 中gradle
nice,thanks@Tamicer
@Tamicer where dose the code come from?
@yzlee I forgot
@Tamicer -_-
@Tamicer niubility [比心]
@Tamicer I want to know what is the principle of ?
您可以使用库将代码添加到gradle中:
tasks.withType(Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') options.addStringOption('encoding', 'UTF-8') options.addStringOption('charSet', 'UTF-8') }
非常感谢您的回答 Build successful 这对我非常有用