https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

dasralph

02/12/2021, 11:17 AM
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

Big Chungus

02/12/2021, 11:19 AM
Have you tried restarting idea?
m

Marc Knaup

02/12/2021, 11:19 AM
Try a Gradle build in the terminal. There are probably errors which prevent the IDE from syncing.
d

dasralph

02/12/2021, 11:19 AM
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

Marc Knaup

02/12/2021, 11:23 AM
./gradlew build
no sync
Have you updated
kotlinx-serialization
to
1.1.0-RC
?
d

dasralph

02/12/2021, 11:27 AM
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

Marc Knaup

02/12/2021, 11:27 AM
In IDE sync? That error happens frequently for me on sync. IDE restart usually helps.
Or reopening the project
d

dasralph

02/12/2021, 11:32 AM
after restarting it works, thank you