java.lang.UnsupportedOperationException: PermittedSubclasses requires ASM9
https://github.com/Kotlin/dokka/issues/2956
disable task
tasks.matching { task ->
task.name.contains("javaDocReleaseGeneration", ignoreCase = true)
}.configureEach {
enabled = false
}
another solution:
- remove
withJavadocJar()
- The workaround was to remove withJavadocJar() from the AGP DSL and instead include the generated Dokka output in top-level Gradle-DSL artifacts block:
tasks.dokkaHtml.configure {
dokkaSourceSets {
named("main") {
noAndroidSdkLink.set(false)
}
}
}
tasks.register<Jar>("dokkaHtmlJar") {
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml.flatMap { it.outputDirectory })
archiveClassifier.set("html-docs")
}
artifacts {
tasks.findByName("dokkaHtmlJar")
}