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

Ran

11/28/2019, 10:02 AM
I use IDEA 2019.2.4 and kotlin version is 1.3.50.
i

Ivan Kubyshkin [JetBrains]

11/28/2019, 10:04 AM
Try to 'File | Invalidate Caches / Restart'
r

Ran

11/28/2019, 10:09 AM
I have tried many times, but it doesn’t work.
e

EvaS

11/28/2019, 11:15 AM
Did you upgrade kotlin gradle plugin ?
r

Ran

11/28/2019, 12:50 PM
Yes. It’s 1.3.50 too
b

Big Chungus

11/28/2019, 12:55 PM
Try removing .idea and .gradle from project. Then restart idea
a

Alexey Belkov [JB]

11/28/2019, 2:13 PM
Also check your project SDK is setup correctly and kill all gradle daemons, it may help.
r

Ran

11/28/2019, 3:10 PM
Okay, thanks you guys, I will try and give you feedback. Thanks!
I tried the way @Big Chungus provided, and it doesn’t work too. Finally, I recreated the whole project from scratch: gradle init —dsl kotlin , then recreated the whole structure and files, then everything is fine. May the problem is caused by the first step, in the first project, I use gradle init and change build.gradle to build.gradle.kts.
@Sebastian Sellmair [JB] Here .