Kotlinx.serialization: Readme gradle example not working

Created on 26 Sep 2017  路  3Comments  路  Source: Kotlin/kotlinx.serialization

In the build.gradle:
Cannot resolve symbol 'serialization_version'
but if you switch to serializationVersion it resolves.


With the basic example, the annotation is red, for both of the above formats.
```kotlin
@Serializable
// this class does not have a constructor
// Cannot access 'Serializable': it is internal in 'kotlin.io'

Most helpful comment

Please import annotation explicitly: import kotlinx.serialization.Serializable

All 3 comments

Please import annotation explicitly: import kotlinx.serialization.Serializable

Which example did you use? From root readme? Or from example-jvm folder?

It was an import problem, working now.
Root readme.

Was this page helpful?
0 / 5 - 0 ratings