Join Slack
Menu
Home
Archive
According to <https://github.com/Kotlin/kotlinx.serialization/issues/1472> kotlin.time.Duration shou...
# serialization
d
David Herman
07/08/2023, 1:32 AM
According to
https://github.com/Kotlin/kotlinx.serialization/issues/1472
kotlin.time.Duration should be serializable as of 1.7.20, but I'm using 1.8.20 and I'm still getting an error. Am I doing something wrong?
David Herman
07/08/2023, 1:33 AM
Here's a screenshot showing the error:
David Herman
07/08/2023, 1:33 AM
And here's another screenshot showing that the Duration class I'm using in my project lives in Kotlin 1.8.20 (and it not annotated with serializable)
a
Ayfri
07/08/2023, 1:57 AM
What version of kotlinx.datetime do you have ?
d
David Herman
07/08/2023, 1:58 AM
I'm not sure I follow, I'm not using kotlinx datetime explicitly
David Herman
07/08/2023, 2:02 AM
(Accidentally uploaded the same screenshot twice, whoops! Second time meant to include this)
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by