InsertKoinIO / koin

Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
https://insert-koin.io
Apache License 2.0
9.08k stars 719 forks source link

Getting error when upgrading koin version or using bom #1766

Open pseudoankit opened 10 months ago

pseudoankit commented 10 months ago

Describe the bug not able to build app I just tried upgrading my koin android version from 3.2.2 to 3.5.3 also tried adding compose bomb 3.5.0 and 3.5.3 but still the same error

To Reproduce

implementation(platform("io.insert-koin:koin-bom:3.5.0"))
implementation("io.insert-koin:koin-core")
implementation("io.insert-koin:koin-android")

Koin module and version: koin-android:3.2.2-> koin-android:3.5.5 io.insert-koin:koin-bom:3.5.0

Snippet or Sample project to help reproduce

> Task :app:mergeExtDexDebug
AGPBI: {"kind":"error","text":"com.android.tools.r8.kotlin.H","sources":[{}],"tool":"D8"}
AGPBI: {"kind":"error","text":"com.android.tools.r8.kotlin.H","sources":[{}],"tool":"D8"}
com.android.tools.r8.kotlin.H

AGPBI: {"kind":"error","text":"com.android.tools.r8.kotlin.H","sources":[{}],"tool":"D8"}
AGPBI: {"kind":"error","text":"com.android.tools.r8.kotlin.H","sources":[{}],"tool":"D8"}

> Task :app:mergeExtDexDebug FAILED
Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform koin-androidx-compose-3.5.0.aar (io.insert-koin:koin-androidx-compose:3.5.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingNoClasspathTransform: /Users/ankitkumar/.gradle/caches/transforms-3/a961666292203885225666c90f5e1ab5/transformed/jetified-koin-androidx-compose-3.5.0-runtime.jar.
         > Error while dexing.
   > Failed to transform koin-compose-jvm-1.1.0.jar (io.insert-koin:koin-compose-jvm:1.1.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
      > Execution failed for DexingNoClasspathTransform: /Users/ankitkumar/.gradle/caches/transforms-3/4c063ee0b74aea066186d1931ad15a6a/transformed/jetified-koin-compose-jvm-1.1.0.jar.
         > Error while dexing.
   > Failed to transform koin-core-jvm-3.5.0.jar (io.insert-koin:koin-core-jvm:3.5.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
      > Execution failed for DexingNoClasspathTransform: /Users/ankitkumar/.gradle/caches/transforms-3/8e1ecb4153637999b1c8484fd6a607c4/transformed/jetified-koin-core-jvm-3.5.0.jar.
         > Error while dexing.
   > Failed to transform kotlin-stdlib-1.9.0.jar (org.jetbrains.kotlin:kotlin-stdlib:1.9.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingNoClasspathTransform: /Users/ankitkumar/.gradle/caches/transforms-3/d1feadb975edfa262504de423cc862cd/transformed/jetified-kotlin-stdlib-1.9.0.jar.
         > Error while dexing.
sleeyax commented 9 months ago

Same issue here using precompose. Not sure what's going on.