Hi! I wanted to try out Dokka2 and followed the <m...
# dokka
y
Hi! I wanted to try out Dokka2 and followed the migration guide. When running
dokkaGenerate
I’m currently receiving this error using Kotlin 2.1.0, Serialization 1.8.0, Dokka 2.0.0.
Copy code
Execution failed for task ':shared:dokkaGeneratePublicationHtml'.
> Could not initialize class kotlinx.serialization.json.JsonLiteralSerializer

Exception java.lang.NoClassDefFoundError: kotlin/uuid/Uuid [in thread "Execution worker Thread 3"]
We’re using Kotlin Uuid in some parameters. Do you happen to have met this issue before?
c
kotlin/uuid/Uuid
was added in Kotlin 2.0; is it possible that some part of the project (perhaps Gradle itself) isn’t using language level 2.0 or higher?
y
Was indeed that! Updated to Gradle 8.11 and it seems to build successfully! Thanks for that 🎉
🎉 1