https://kotlinlang.org logo
#ktor
Title
# ktor
j

Jonathan Smith

12/17/2021, 5:40 PM
This morning I pressed the button to auto-upgrade my project to a newer version of ktor .. and it can no longer find kotlinx.serialization libraries (presumably the serialization plugin is no longer working). Everything was working well before that. Any hints on how to resolve this or back out the changes? Thanks!
r

Rustam Siniukov

12/17/2021, 6:01 PM
@Vadim Briliantov ^
v

Vadim Briliantov

12/17/2021, 6:40 PM
1. Are you using MPP or your project is JVM-only? 2. Please verify the following libraries are present:
io.ktor:ktor-server-content-negotiation
io.ktor:ktor-serialization-kotlinx-json
and kotlinx.serialization plugin (https://github.com/Kotlin/kotlinx.serialization) 3. Other than that, could you please clarify what do you mean by
can no longer find kotlinx.serialization libraries
? Can you send any example or MVP? And what versions of serialization plugin, ktor, and IDE do you use?
j

Jonathan Smith

12/20/2021, 5:11 PM
1. JVM only 2. The IDE shows the libraries as missing (highlighting the imports as red) 3. Yes, all were present. 4. Similar compile error about missing libraries when I build. My solution for was to start a new project (non 2.0) and move my source & dependancies over. That seems to work fine. I've not yet done much with ktor specific features (working on statistical model calculations before I get to that point.) So moving my source was easy.
Thanks!
2 Views