-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Type org.koin.ksp.generated.KoinDef<dependency> is defined multiple times in a multi-module project #185
Comments
Facing the same issue with the same versions in a multi-module project |
I have the same issue |
I have the same problem |
As a workaround for anyone facing this (and a very ugly one), I have been copying/pasting the base abstract class and giving it a different name every time I need to use it until this gets resolved. |
Not a good decision.
|
@arnaudgiuliani Is there maybe any update about this? |
Hopefully it will get fixed soon. Until then, I can't update |
Ok, will look at it 👍 |
I have the same issue |
Fixes InsertKoinIOgh-185 & InsertKoinIOgh-167 when KOIN_CONFIG_CHECK is false.
Fixes InsertKoinIOgh-185 & InsertKoinIOgh-167 when KOIN_CONFIG_CHECK is false.
Fixes InsertKoinIOgh-185 & InsertKoinIOgh-167 when KOIN_CONFIG_CHECK is false.
Fixes InsertKoinIOgh-185 & InsertKoinIOgh-167 when KOIN_CONFIG_CHECK is false.
Describe the bug
A multi-module project is built with an error when extending classes in different modules.
To Reproduce
Module 1:
Module 2:
Module 3:
Module app:
Result. Project build with error
Caused by: com.android.tools.r8.internal.g: Type org.koin.ksp.generated.KoinDefOrgKoinSimpleBaseFooBase is defined multiple times: /media/nsm/4aeb5859-3b1a-4888-b1b7-6fb9ecd4a3b4/nsm/null2/koin-getting-started/android-annotations/module-a/build/.transforms/6c4b7a04527a57b0b19276e8afa44dda/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/koin/ksp/generated/KoinDefOrgKoinSimpleBaseFooBase.dex, /media/nsm/4aeb5859-3b1a-4888-b1b7-6fb9ecd4a3b4/nsm/null2/koin-getting-started/android-annotations/module-b/build/.transforms/f6d1a675067414cc1abdf61eac29739c/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/koin/ksp/generated/KoinDefOrgKoinSimpleBaseFooBase.dex
Expected behavior
Build the project without errors
Koin project used and used version (please complete the following information):
koin = "4.0.0"
koin-annotations = "2.0.0-Beta1" or "1.4.0"
Additional moduleDefinition
With library version koin-annotations = "1.3.1" the project is built without errors
The text was updated successfully, but these errors were encountered: