Marcin Bak
04/06/2021, 9:16 PMkotlin("plugin.serialization")
and serialization dependency in common module I don't get generated serializers and get a warning on @Serializable
kotlinx.serialization compiler plugin is not applied to the module, so this annotation would not be processed. Make sure that you've setup your buildscript correctly and re-import project.The main build.gradle.kts contains proper buildscript dependencies
classpath(kotlin("gradle-plugin", version = "1.4.31"))
classpath(kotlin("plugin.serialization", version = "1.4.31"))
Nothing seems to help. I've removed all unnecessary code, reimported project, invalidated caches but to no avail. Any ideas?Alexis Manin
04/07/2021, 6:17 AMMarcin Bak
04/07/2021, 7:28 AMandylamax
04/07/2021, 8:33 AMOliver.O
04/08/2021, 9:52 PMplugins {
kotlin("multiplatform") version "1.4.32"
kotlin("plugin.serialization") version "1.4.32"
application
}
If not, there is no plugin generating serializers as indicated in the error message you were getting.Marcin Bak
04/09/2021, 9:31 AMadk
04/10/2021, 2:02 PMgradle/gradle-wrapper.properties
file? Do you have nested modules/projects using either include(...)
or includeBuild(...)
? Are you using buildSrc
for managing build logic? I have found that IntelliJ is easily confused by these constructs.Marcin Bak
04/13/2021, 8:38 PMMouaad
04/22/2021, 4:10 PMMarc Knaup
04/22/2021, 4:11 PMMarcin Bak
04/22/2021, 5:01 PMadk
04/22/2021, 6:02 PM@Serializable
class from commonMain
to commonTest
, the warning goes away.Marcin Bak
04/22/2021, 6:30 PMMouaad
04/23/2021, 8:51 AMMouaad
05/06/2021, 12:28 PM