Hello, after updating to Kotlin 1.4.30, IntelliJ h...
# multiplatform
d
Hello, after updating to Kotlin 1.4.30, IntelliJ has problems with my Kotlin multiplatform modules. This blue dot on the modules is gone, and also code highlighting isn’t working anymore :-( I only change the used Kotlin version from 1.4.21 to 1.4.30. I use IntelliJ IDEA 2020.3.2, and all IntelliJ plugins are up to date. Do I have to do more than just changing the Kotlin version?
b
Have you tried restarting idea?
m
Try a Gradle build in the terminal. There are probably errors which prevent the IDE from syncing.
d
yes, also Gradle sync, invalidate cache and restart, nothing helped
how do I do a gradle sync in the terminal? I did it never before and
./gradlew sync
doesn”t exists
m
./gradlew build
no sync
Have you updated
kotlinx-serialization
to
1.1.0-RC
?
d
src/androidMain/resources/.gitkeep' is not a directory
after deleting of this file I got
Copy code
Could not find org.jetbrains.kotlin:kotlin-stdlib-common:1.4.30-270.
Required by:
    project : > org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0-RC
    project : > org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0-RC > org.jetbrains.kotlinx:kotlinx-serialization-core:1.1.0-RC

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
m
In IDE sync? That error happens frequently for me on sync. IDE restart usually helps.
Or reopening the project
d
after restarting it works, thank you