hello, did anyone have following issue? As soon I add `atomicfu` to project I get this issue with se...
m
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")
}
Copy code
dependencies {
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20")
    classpath("com.android.tools.build:gradle:7.2.2")
    classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.22.0")
    classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.22.0")
}
i
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
Yeah, just did that and it works. Thank you very much!