https://kotlinlang.org logo
f

Fail

06/20/2019, 12:20 PM
UPD: (not KotlinxSerializer) io.ktor.client.features.json.serializer unresolved after update to 1.3.40
Copy code
Unresolved reference: serializer
What changed?
r

ribesg

06/20/2019, 12:27 PM
Wow maybe a changelog could help amirite
Did you also update ktor
And kotlinx.serialization
f

Fail

06/20/2019, 12:34 PM
I think I have latest version. Ktor latest 1.2.2 on Git. Or not?
kotlinx serialization is 0.11.1
r

ribesg

06/20/2019, 12:48 PM
Did you change the way you import
kotlinx.serialization
f

Fail

06/20/2019, 12:58 PM
All my imports:
Copy code
import io.ktor.client.HttpClient
import io.ktor.client.features.json.JsonFeature
problem here:
Copy code
import io.ktor.client.features.json.serializer.KotlinxSerializer
Copy code
import io.ktor.client.features.logging.DEFAULT
import io.ktor.client.features.logging.LogLevel
import io.ktor.client.features.logging.Logger
import io.ktor.client.features.logging.Logging
import io.ktor.client.request.get
import io.ktor.client.request.url

import io.ktor.http.Url
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
Yeah. I solved my problem. need to implementation
Copy code
implementation "io.ktor:ktor-client-serialization:$ktor_version"
👍 1