Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ktor3 package duplicates with koin-core #2063

Open
GazimSoliev opened this issue Nov 26, 2024 · 3 comments
Open

Ktor3 package duplicates with koin-core #2063

GazimSoliev opened this issue Nov 26, 2024 · 3 comments
Labels
question Usage question

Comments

@GazimSoliev
Copy link

Describe the bug
I can't compile andoird app using koin-ktor3, I get checkDebugDuplicateClasses FAILED

To Reproduce
Steps to reproduce the behavior:

  1. Create android app
  2. Use koin-ktor3
  3. Create some simple ktor server
  4. Compile it

Expected behavior
Compiling without duplicates

Koin module and version:
[e.g]: koin-core:4.1.0-Beta1, koin-ktor3:4.1.0-Beta1

@GazimSoliev
Copy link
Author

Execution failed for task ':android-service:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class org.koin.ktor.ext.ApplicationCallExtKt found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.ext.ApplicationCallExtKt$inject$1 found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.ext.ApplicationExtKt found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.ext.ApplicationExtKt$inject$1 found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.ext.RouteExtKt found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.ext.RouteExtKt$inject$1 found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.ext.RoutingExtKt found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.ext.RoutingExtKt$inject$1 found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.plugin.KoinApplicationEventsKt found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.plugin.KoinIsolatedContextPluginKt found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.plugin.KoinPluginKt found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.plugin.KoinPluginKt$setupKoinScope$1 found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)
     Duplicate class org.koin.ktor.plugin.RequestScope found in modules koin-ktor-4.0.0.jar -> koin-ktor-4.0.0 (io.insert-koin:koin-ktor:4.0.0) and koin-ktor3-4.1.0-Beta1.jar -> koin-ktor3-4.1.0-Beta1 (io.insert-koin:koin-ktor3:4.1.0-Beta1)

@arnaudgiuliani
Copy link
Member

why here is it an android app? koin-ktor should be used for backend 🤔

@arnaudgiuliani arnaudgiuliani added the question Usage question label Nov 27, 2024
@GazimSoliev
Copy link
Author

why here is it an android app? koin-ktor should be used for backend 🤔

Cuz android project has UI written in web

@arnaudgiuliani arnaudgiuliani changed the title Ktor3 package duplicates with 3.5.6 Ktor3 package duplicates with koin-core Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usage question
Projects
None yet
Development

No branches or pull requests

2 participants