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
Chris Lee
02/03/2025, 8:20 PM
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
Yannick Pulver
02/03/2025, 8:41 PM
Was indeed that! Updated to Gradle 8.11 and it seems to build successfully! Thanks for that 🎉