Hi! I’ve updated Kotlin to 1.4, and serialization ...
# serialization
a
Hi! I’ve updated Kotlin to 1.4, and serialization to 1.0.0-RC and I’m getting this:
Your current kotlinx.serialization core version is too low, while current Kotlin compiler plugin 1.4.0 requires at least 1.0-M1-SNAPSHOT. Please update your kotlinx.serialization runtime dependency.
Any idea what’s going on?
b
what gradle coordinates are you using for the runtime dependency and what version are you using for the plugin
a
I’m using 1.4.0 for the plugin, and
org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.0-RC
as the coordinates
b
huh weird. that all looks right
a
Right? I’ve done a gradle clean, but no luck so far! Very weird
s
Maybe something else is including an old version ?
a
That’s probably it, I’d guess most libraries using Serialization haven’t switched to 1.0 yet
s
There is a gradle incantation to force it to a specific version (dont have it at hand)
a
I also tried forcing the version with this but it doesn’t seem to work either! Well it was just to try out the things in Kotlin 1.4, but it can wait for sure!
n
Hello i got the same error :/ Are you using ktor in your gradle depencencies ?
a
No, it's a mobile project
v
Seems like a Gradle check bug. Could you please file an issue with a reproducer?
j
@Nicolas Bourdin I had the same issue than you. My kmp project had ktor-client dependencies for mobile target that I did not changed. Updating those fixed the issue. Thanks for the hint
👍 2