Hello, World! So I'm trying to re-open a MP proje...
# multiplatform
b
Hello, World! So I'm trying to re-open a MP project that I've not opened for a few months... And I get:
Copy code
There are 33 third-party libraries attached to the project that were compiled with an older Kotlin/Native compiler and cant be read in IDE
and almost everything is red in the IDE. I've tried to update all my dependencies to their latest versions, but this didn't improve the situation. Is that normal?
Here's the list:
Copy code
There are 33 third-party libraries attached to the project that were compiled with an older Kotlin/Native compiler and cant be read in IDE: 
 io.ktor:ktor-client-core-iosx64:klib:1.3.2 
 io.ktor:ktor-client-core-macosx64:klib:1.3.2 
 io.ktor:ktor-client-curl-macosx64:klib:1.3.2 
 io.ktor:ktor-client-curl-macosx64:klib:cinterop-libcurl:1.3.2 
 io.ktor:ktor-client-ios-iosx64:klib:1.3.2 
 io.ktor:ktor-client-json-iosx64:klib:1.3.2 
 io.ktor:ktor-client-json-macosx64:klib:1.3.2 
 io.ktor:ktor-client-logging-iosx64:klib:1.3.2 
 io.ktor:ktor-client-logging-macosx64:klib:1.3.2 
 io.ktor:ktor-client-serialization-iosx64:klib:1.3.2 
 io.ktor:ktor-client-serialization-macosx64:klib:1.3.2 
 io.ktor:ktor-http-cio-iosx64:klib:1.3.2 
 io.ktor:ktor-http-cio-macosx64:klib:1.3.2 
 io.ktor:ktor-http-iosx64:klib:1.3.2 
 io.ktor:ktor-http-macosx64:klib:1.3.2 
 io.ktor:ktor-io-iosx64:klib:1.3.2 
 io.ktor:ktor-io-iosx64:klib:cinterop-bits:1.3.2 
 io.ktor:ktor-io-iosx64:klib:cinterop-sockets:1.3.2 
 io.ktor:ktor-io-macosx64:klib:1.3.2 
 io.ktor:ktor-io-macosx64:klib:cinterop-bits:1.3.2 
 io.ktor:ktor-io-macosx64:klib:cinterop-sockets:1.3.2 
 io.ktor:ktor-utils-iosx64:klib:1.3.2 
 io.ktor:ktor-utils-iosx64:klib:cinterop-utils:1.3.2 
 io.ktor:ktor-utils-macosx64:klib:1.3.2 
 io.ktor:ktor-utils-macosx64:klib:cinterop-utils:1.3.2 
 org.jetbrains.kotlinx:atomicfu-iosx64:klib:0.14.2 
 org.jetbrains.kotlinx:atomicfu-iosx64:klib:cinterop-interop:0.14.2 
 org.jetbrains.kotlinx:atomicfu-macosx64:klib:0.14.2 
 org.jetbrains.kotlinx:atomicfu-macosx64:klib:cinterop-interop:0.14.2 
 org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64:klib:1.3.4 
 org.jetbrains.kotlinx:kotlinx-coroutines-core-macosx64:klib:1.3.4 
 org.jetbrains.kotlinx:kotlinx-serialization-runtime-iosx64:klib:0.20.0 
 org.jetbrains.kotlinx:kotlinx-serialization-runtime-macosx64:klib:0.20.0
j
The in IDE Kotlin plugin is updated and cannot handle the older Kotlin Native version. You could update Kotlin or install an older Kotlin IDE plugin to remove the warning.
l
or wait for ktor to be updated for Kotlin 1.4 (or use the 1.4.0-rc release if it exists) so everything is Kotlin 1.4 compatible
b
@Jurriaan Mous not sure what you mean by "update Kotlin"?
l
@bod He means updating the project for Kotlin 1.4
👍 1
So the project Kotlin version matches the IDE Kotlin plugin version
j
Or the version matching the IDE plugin. In 2020.2 it is 1.3.72 by default
b
yes but I already did this 🙂 I updated all my dependencies (including Kotlin, and the IDE, and the plugin) to the latest version
j
Maybe try a gradle clean and an invalidate caches?
b
already did 😛 (this has become a subconscious reflex nowadays)
but if KTOR is not up to date with 1.4, that's a problem, right?
j
That could be the problem. It will be released later today.
b
all right, thanks a lot!
To summarize, if I understand correctly, this is normal and expected, and will happen everytime a new Kotlin version is released. Better not depend on a lib that is slow to update though!
j
I most of the time wait a bit with updating the Kotlin IDE plugin and continue with the old version until things are more stable. In the past I sometimes downgraded again. But Kotlin Native needs to be totally in sync with versions indeed.
b
all right, thanks a lot!