Jan

    Jan

    11 months ago
    Hey! I wrote a kotlin multiplatform library and wanted to test it on the jvm side. But IntelliJ gives me a "Cannot access XY, Check for missing dependencies" error and I can't compile. Its probably something with the publishing because if I add the dependencies manually, it works. I can see the dependecies in "External Libraries" in Intellij Build file from the MP project: https://github.com/jan-tennert/DiscordKM/blob/master/build.gradle.kts Error: (see thread)
    e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class io.github.jan.discordkm.api.entities.clients.Client, unresolved supertypes: kotlinx.coroutines.CoroutineScope
    Adding -Xextended-compiler-checks argument might provide additional information.
    e: H:\Programming\Other\DiscordKMJVM\src\main\kotlin\Test.kt: (18, 12): Cannot access 'kotlinx.coroutines.CoroutineScope' which is a supertype of 'io.github.jan.discordkm.api.entities.clients.DiscordWebSocketClient'. Check your module classpath for missing or conflicting dependencies
    e: H:\Programming\Other\DiscordKMJVM\src\main\kotlin\Test.kt: (19, 16): Cannot access 'kotlinx.coroutines.CoroutineScope' which is a supertype of 'io.github.jan.discordkm.api.entities.clients.Client'. Check your module classpath for missing or conflicting dependencies
    Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class io.github.jan.discordkm.api.entities.clients.Client, unresolved supertypes: kotlinx.coroutines.CoroutineScope
    Adding -Xextended-compiler-checks argument might provide additional information.
    e: H:\Programming\Other\DiscordKMJVM\src\main\kotlin\Test.kt: (20, 24): Cannot access class 'com.soywiz.klock.DateTimeTz'. Check your module classpath for missing or conflicting dependencies
    e: H:\Programming\Other\DiscordKMJVM\src\main\kotlin\Test.kt: (24, 12): Cannot access 'kotlinx.coroutines.CoroutineScope' which is a supertype of 'io.github.jan.discordkm.api.entities.clients.DiscordWebSocketClient'. Check your module classpath for missing or conflicting dependencies
    (The dependencies are not really there I can't use like GlobalScope.launch this class doesn't exist)
    Any ideas?