I’m updating my mpp to 1.4, but now the `KotlinxSe...
# ktor
w
I’m updating my mpp to 1.4, but now the
KotlinxSerializer
isn’t recognized.
Copy code
commonMain {
    implementation("io.ktor:ktor-client-core:1.4.0")
    implementation("io.ktor:ktor-client-json:1.4.0")
    implementation("io.ktor:ktor-client-logging:1.4.0")
    implementation("io.ktor:ktor-client-serialization:1.4.0")
}
3
t
I just got my project working: as stated in migration, changed serialization and coroutines common to ‘core’ version, remove all other targets. ktor stays as you have above. IDE (AS) shows me errors for .serializers, but it does build and run..
Okay, I fixed mine like the others. In common, put just these three:
Copy code
implementation("io.ktor:ktor-client-core:$ktor_version")
                implementation("io.ktor:ktor-client-json:$ktor_version")
                implementation("io.ktor:ktor-client-serialization:$ktor_version")
and remove any ktor references in ios/android/js sections.
Correction: still had to include the client-ios or it crashes at run-time.
w
I think the main problem is due to the all
ktor-client-* version 1.4.0
artifacts aren’t yet published in Maven Central.
When I posted this trouble, the
ktor-client-serialization-jvm:1.4.0
artifact was not yet published in Maven Central, but now it is.