I’m trying to upload my Library project to jCenter.
when I run gradlew install
I’m getting the error:
Execution failed for task ':myLibraryProject:javadoc'
I added the code below to my library project:
task androidJavadocs(type: Javadoc) {
failOnError false // add this line
source = android.sourceSets.main.java.getSrcDirs()
}
but still I get
"Javadoc generation failed. Generated Javadoc options file..."
I've also tried the accepted answer from here: Generate JavaDocs with Android Gradle plugin
Can I disable the generation of Javadocs, or maybe try to continue with the build although the failure?