Try removing .idea and .gradle from project. Then restart idea
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.
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.