A small weird question, have you ever stumbled into adding a library and then suddenly your project is not recognized anymore as a Kotlin project? It took me a while to realize it was because of a library, ktor-client-gson specifically, and, when working with android, I didn't really stumbled on this before
11/18/2020, 9:39 PM
GSON is only available on JVM or Android targets, so it sounds like Gradle is failing trying to fetch that dependency for another MPP target. In that case, the whole Gradle build will fail, and IntelliJ won’t know anything about your project structure if Gradle fails while doing a Gradle sync.
In these kinds of situations, IntelliJ might not be able to give you the best diagnostic info, but if you run any Gradle task from the command line, you should be able to see the errors
11/18/2020, 10:44 PM
Thanks, I can understand a little bit better what's going on now 🙃