I am running into a `java.lang.NoClassDefFoundErro...
# multiplatform
t
I am running into a
java.lang.NoClassDefFoundError: kotlinx/serialization/json/Json
when executing tests in a multiplatform project. Any help would be much appreciated 🙏
It seems to be related to the multiplatform target. If I change it from
android
to
jvm
it works 🤔
h
May be a known issue: https://youtrack.jetbrains.com/issue/KT-29343 Could you please try to add the appropriate kotlinx.serialization runtime dependency to the corresponding Android's configuration? Like this, on top-level:
Copy code
dependencies { 
    testImplementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version"
}
💯 1
t
that fixed it 👍
309 Views