https://kotlinlang.org logo
#ktor
Title
# ktor
n

nrobi

02/04/2020, 11:40 AM
Hey I’m using
kotlinx-serialization
with
ktor
however I’m receiving a
java.lang.NoClassDefFoundError
with
call.receive<MyModel>
. Any clue what could be wrong with the setup?
l

louiscad

02/06/2020, 9:44 AM
Does your data class have the
@Serializable
annotation?
n

nrobi

02/06/2020, 9:46 AM
Yes, and also
@SerialName
l

louiscad

02/06/2020, 9:56 AM
Did you install
ContentNegotiation
accordingly as well?
n

nrobi

02/06/2020, 9:57 AM
Yepp