Thread
#multiplatform
    Cicero

    Cicero

    1 year ago
    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
    c

    Casey Brooks

    1 year ago
    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
    Cicero

    Cicero

    1 year ago
    Thanks, I can understand a little bit better what's going on now 🙃