I’ve got the following error : ```:desktop:jvmMain...
# koin
r
I’ve got the following error :
Copy code
:desktop:jvmMain: Could not resolve io.insert-koin:koin-core:3.2.0.
It looks like a dependency issue but all my other dependencies look fine. For more context: In
:common:build.gradle.kts
Copy code
sourceSets {

    val commonMain by getting {
        dependencies {

            ...

            // Koin
            api("io.insert-koin:koin-core:3.2.0")
            api("io.insert-koin:koin-android:3.2.0")

        }
    }
My
settings.gradle.kts
:
Copy code
pluginManagement {
    repositories {
        google()
        gradlePluginPortal()
        mavenCentral()
        maven(url = "<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
        maven(url = "<https://jitpack.io>")
    }

    plugins {
        kotlin("multiplatform") version "1.6.10"
        kotlin("android") version "1.6.10"
        kotlin("jvm") version "1.6.10"
        kotlin("plugin.serialization") version "1.6.20"
        id("com.android.application") version "7.0.4"
        id("com.android.library") version "7.0.4"
        id("org.jetbrains.compose") version "1.1.0"
        id("org.jetbrains.dokka") version "1.6.20"
        id("com.github.johnrengelman.shadow") version "7.1.2"
    }
}
and my root
build.gradle.kts
:
Copy code
allprojects {
    repositories {
        google()
        gradlePluginPortal()
        mavenCentral()
        maven(url = "<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
        maven(url = "<https://jitpack.io>")
    }
}

plugins {
    kotlin("multiplatform") apply false
    kotlin("android") apply false
    kotlin("jvm") apply false
    kotlin("plugin.serialization") apply false
    id("com.android.application") apply false
    id("com.android.library") apply false
    id("org.jetbrains.compose") apply false
    id("org.jetbrains.dokka") apply false
    id("com.github.johnrengelman.shadow") apply false
}
I didn’t use
buildscript
on purpose.
s
The official website is a bit misleading on this:
👍 1
a
Here is an example with buildSrc: https://github.com/InsertKoinIO/hello-kmp