Hello everyone, I’m working on an application that...
# koin
z
Hello everyone, I’m working on an application that uses KMM as submodule. When I’ve tried to update Koin to the last version 3.4.0, I got this issue when building my project:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkBenchmarkDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class org.koin.core.context.DefaultContextExtKt found in modules jetified-koin-core-coroutines-jvm-3.4.0 (io.insert-koin:koin-core-coroutines-jvm:3.4.0) and jetified-koin-core-jvm-3.4.0 (io.insert-koin:koin-core-jvm:3.4.0)
Go to the documentation to learn how to <a href="<http://d.android.com/r/tools/classpath-sync-errors|d.android.com/r/tools/classpath-sync-errors>">Fix dependency resolution errors</a>.
I use lazyModule when creating my modules. And I think that the problem occurs when I call startKoin. In my build.gradle, I have:
implementation("io.insert-koin:koin-core:3.4.0")
implementation("io.insert-koin:koin-core-coroutines:3.4.0")
Is there someone that got the same issue when using lazyModules ?
a
did you found the issue?
z
No I'm sorry, I still the problem when using LazyModules and lazyModule
a
if you can reproduce it in a Github repo, having a sample project to reproduce, would help save time. I will check on my side 👍
z
Ok I'll do that and send you a message to check by your side, thanks a lot Arnaud 👍🏼
a
thanks 🙂