Hello guys. I am trying to run my ktor app and I a...
# serialization
j
Hello guys. I am trying to run my ktor app and I am getting this error
Your current kotlinx.serialization core version is 2.0.20, while current Kotlin compiler plugin unknown requires at least 1.0-M1-SNAPSHOT. Please update your kotlinx.serialization runtime dependency.
I can't figure out why Kotlin Serialization is throwing this error. This is the class throwing the error but if i remove the annotation, it works fine
Copy code
import kotlinx.serialization.Serializable

@Serializable
data class User(
    val id: Int,
    val uuid: String,
    val firstName: String,
    val lastName: String,
    val otherNames: String?,
    val phone: String,
    val email: String?,
    val role: String,
    val createdAt: String,
    val updatedAt: String,
    val token: String,
)
g
Did you update the ktx serialization lib with a version which supports kotlin 2.0.20?
j
Yes I did