Kotlinx.serialization: Android Studio: Unresolved reference: serializer

Created on 9 Aug 2019  路  1Comment  路  Source: Kotlin/kotlinx.serialization

Trying to figure out #527, I created a fresh android project in Android Studio 3.4.2.
I added all dependencies in build.gradle but now I'm not able to build the project because of the compile error Unresolved reference: serializer

To reproduce, open the project in Android Studio 3.4.2
MyApplication.zip

question

Most helpful comment

I forgot to apply the plugin by adding apply plugin: 'kotlinx-serialization' in build.gradle of Module: app.
This fixed the issue

>All comments

I forgot to apply the plugin by adding apply plugin: 'kotlinx-serialization' in build.gradle of Module: app.
This fixed the issue

Was this page helpful?
0 / 5 - 0 ratings