koin icon indicating copy to clipboard operation
koin copied to clipboard

Could not resolve io.insert-koin:koin-ktor:3.2.0-beta-1

Open ronjunevaldoz opened this issue 3 years ago • 3 comments

Having an issue using koin-ktor:3.2.0-beta-1 Could not resolve io.insert-koin:koin-ktor:3.2.0-beta-1

Gradle

repositories {
    mavenCentral()
    maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
}
dependencies {
    // Koin 
    implementation("io.insert-koin:koin-ktor:$koinVersion")
    implementation("io.insert-koin:koin-logger-slf4j:$koinVersion")
}

gradle.properties

koinVersion=3.2.0-beta-1

ronjunevaldoz avatar Feb 25 '22 05:02 ronjunevaldoz

I just ran into the same error message. My problem was that I had quotation marks around the value for the Koin version in my gradle.properties. Once I replaced koin_version= "3.2.0-beta-1" with koin_version= 3.2.0-beta-1 I got my build running. Looking at your samples I see one difference to by code. I have the Koin dependencies as implementation "io.insert-koin:koin-ktor:$koin_version" // Koin for Ktor implementation "io.insert-koin:koin-logger-slf4j:$koin_version" // SLF4J Logger (note the missing parentheses). Maybe give it a try?

JerryPreissler avatar Feb 27 '22 12:02 JerryPreissler

Same issue here: implementation("io.insert-koin:koin-logger-slf4j:3.1.5") works implementation("io.insert-koin:koin-logger-slf4j:3.2.0-beta-1") doesn't work

duruer avatar Mar 19 '22 20:03 duruer

In my case, I got an error that my project enable Java 1.8 compatibility but this library doesn't supports it. So I removed Java 1.8 compatibility in build.gradle and run the project with Java 11 or higher and it worked.

akexorcist avatar Jun 23 '22 15:06 akexorcist

Thank you was targeting Java 8

chrisjenx avatar Aug 13 '22 01:08 chrisjenx

thanks for your feedback, I will check #1437 to fix this 👍

arnaudgiuliani avatar Sep 21 '22 13:09 arnaudgiuliani