Hi guys! I'm working on an internal library for wo...
# dokka
r
Hi guys! I'm working on an internal library for work and I was able to publish it fine to Github Packages before, but ever since I added dokka plugin, I get this error when publishing (even to mavenLocal). Can someone please help me?
Copy code
Execution failed for task ':[MODULE_NAME]:javaDocReleaseGeneration'.
> 'void org.jetbrains.dokka.DokkaSourceSetImpl.<init>(java.lang.String, org.jetbrains.dokka.DokkaSourceSetID, java.util.List, java.util.Set, java.util.Set, java.util.Set, java.util.Set, boolean, boolean, boolean, boolean, int, java.util.Set, java.util.List, java.util.Set, java.lang.String, java.lang.String, boolean, boolean, java.util.Set, org.jetbrains.dokka.Platform, int, kotlin.jvm.internal.DefaultConstructorMarker)'
Also, this happens only on modules where I didn't even apply the dokka plugin (although even if I apply it, it still does this 🤔 ). Both modules which have the error are Android library modules btw. The idea here was only to generate some documentation only for a couple of modules that will be the public interface for users, so not all modules need to use dokka.
h
Which AGP version do you use? There is a bug < 7.3 with this error message.
👍 1
r
I was using 7.2.2 yeah. Trying now with 7.3.0. Thanks for the hint! 🙂
Great, that fixed it 🙌 Thank you once again, I was going crazy thinking I was missing some configuration detail for publishing..
i
Yeah, what sucks about this particular problem is that it can result in different random non obvious and ungoogleable errors Some context on what the problem is and why it happens is here: https://github.com/Kotlin/dokka/issues/2472
1