Multiplatform(Android/iOS) project. Unresolved reference: serializer
See original GitHub issueUnresolved reference: serializer
Getting this error while compiling. here is the link to my build.gradle
file.
link to build.gradle
Projected was created using Intelij IDEA.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Multiplatform(Android/iOS) project. Unresolved reference
Multiplatform (Android/iOS) project. Unresolved reference: serializer. r/Kotlin - Multiplatform(Android/iOS) projectΒ ...
Read more >android - Getting unresolved reference on @Serializable in ...
First, add library "org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.1" from maven to your project(Intelli IDEA menu:Β ...
Read more >Unresolved reference serializer() in Kotlin - YouTrack - JetBrains
Create a multiplatform Kotlin project; Add serialization in the build gradle file; IDEA marks serializer() as unresolved reference, because of receiver typeΒ ...
Read more >Adding Ktor To Kotlin Multiplatform Mobile Results ... - ADocLib
We'll implement it in the common module using Ktor and kotlinx.serialization. Ktor Version and Engine Used (client or server and name) 1.2.2, 1.2.0,...
Read more >[Solved]-Kotlin Multiplatform with iOS: "Use of undeclared type ...
Before that update, I start to have a new issue to build the iOS artifact regarding the Kotlin Serializer: error: compilation failed: Can't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It turns out that it is impossible to mix
plugins
Gradle block andapply plugin
Gradle clauses in case of Kotlin compiler subplugins. So you need to move serialization plugin toplugins
block, like this:Iβll try to update general README on this soon.
https://youtrack.jetbrains.com/issue/KT-28302