hello, did anyone have following issue? As soon I add
atomicfu
to project I get this issue with serialization:
Copy code
Serializer for class 'AllowancesConfig' is not found.
Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.
Class is annotated with @Serializable and everything worked properly until adding atomicfu. When I remove atomicfu error is gone. It is added like this:
Copy code
plugins {
kotlin("multiplatform")
kotlin("plugin.serialization") version "1.5.31"
id("com.android.library")
id("maven-publish")
id("kotlinx-atomicfu")
}
atomicfu 0.22.0 is based on Kotlin 1.9.0. I would suggest to use atomicfu 0.21.0 , if you want to keep kotlin 1.8. Also plugin.serialization version should match the kotlin one.
m
Mario Loncar
09/01/2023, 12:38 PM
Yeah, just did that and it works. Thank you very much!