Hi everyone, I’ve desperately trying for hours (no...
# gradle
r
Hi everyone, I’ve desperately trying for hours (not kidding) to get
kotlinx-serialization
to work. I’ve tried any reasonable set up I can think of, but the code fails at runtime saying:
Copy code
Serializer for class 'SpsRecordIn' is not found.
Mark the class as @Serializable or provide the serializer explicitly.
However:
Copy code
import kotlinx.serialization.Serializable
...
@Serializable
data class SpsRecordIn(...)
This is in my
build.gradle.kts
:
Copy code
plugins {
  application
  kotlin("jvm") version "1.5.10"
  kotlin("plugin.serialization") version "1.5.10"
}
Can anyone help?
l
have you tried deleting the
build
folder and doing
File -> Invalidate Caches
?
t
Do you add serialization runtime dependency?