Hi! I am working on a kotlin multiplatform library...
# multiplatform
p
Hi! I am working on a kotlin multiplatform library with a jvm and javascript portion. I have updated to Kotlin 1.9.21 last week and everything worked fine. Now suddenly I cannot compile anymore, as ALL the kotlin stdlib functionality is no longer available to the compiler. I assume that there is some problem with transitive dependencies pointing to different versions of the kotlin runtime or stdlib. I check this with
./gradlew dependencies
and cannot spot anything "weird". Soooo... does anyone have an idea, what is wrong here and how I can try to fix this. It is pretty frustrating, that updating kotlin versions always has these kind of "surprises" in store for us.
Ok: It seems that having kotlinx-serialization with version >= 1.6.1 in the dependencies breaks everything. The same is true for having kotlinx-datetime with version >= 0.5.0 in the dependencies. This strikes me as super odd, as the release notes of these libraries explicitely state that kotlin was upgraded to 1.9.21 . Any idea, why these won't compile in a MP project with kotlin 1.9.21 ?