Hi, recently my intellij idea stopped seeing my jvmMain correctly. It doesn't recognize any main functions and Run/Debug configuration does not see any classes. It was working before, and I am not sure what changed to break it. Any help would be appreciated.
g
Grégory Lureau
11/02/2021, 11:03 AM
I had a similar issue recently, while renaming the module but not the directory.
You could also remove your .idea and re-import the gradle project.
b
BearDev
11/02/2021, 11:14 AM
Thanks for the suggestion. I tried deleting .idea folder and reimporting it and it seems I am running into an exception now.
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.multiplatform', version: '1.6.0-RC']
Invalidating cache and restarting now breaking the kotlin plugin somehow
``4:28 AM Gradle sync failed: Please initialize at least one Kotlin target in 'project1 (:)'.`
Read more <https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#setting-up-targets> (3 s 166 ms)
4:28 AM Unable to save plugin settings: The plugin org.jetbrains.kotlin failed to save settings and has been disabled. Please restart IntelliJ IDEA
I think I will just make a new project and move over the code. I have no idea how to resolve this.