After adding this to my buid.gradle file I’m getti...
# serialization
b
After adding this to my buid.gradle file I’m getting an error when building:
Copy code
e: java.lang.NoClassDefFoundError: org/jetbrains/kotlin/com/intellij/openapi/util/io/JarUtil
	at org.jetbrains.kotlinx.serialization.compiler.diagnostic.VersionReader.getVersionsFromManifest(VersionReader.kt:34)
Has someone here seen this before?
s
Which Kotlin compiler do you use and what's your setup? This shouldn't be a problem in regular builds, maybe you're using kotlin-compiler-embeddable directly?
b
I think I was using 1.4M3, for an android app
s
Have you tried 1.4.0-rc ?
b
Yeah I tried that, it compiles as long as I don’t use the package in one of my kotlin files
s
Ah, are you using compose? Unfortunately, since compose uses custom-built Kotlin compiler, we can't guarantee that it is compatible with the mainline serialization plugin 😞
b
I am but apart from 2 compiler options, I thought it used the same compiler now
1.4.0-rc
- that’s the version of kotlin I’m using with compose