<@U2JKKPMEE> would like to get your insight for th...
# koin
g
@arnaud.giuliani would like to get your insight for the same
g
No I haven’t tried that yet, let me give it a try and get back to you
👍 1
It throws this : org.koin.core.error.DefinitionOverrideException: Already existing definition or try to override an existing one with qualifier ‘default’ with [typeSingle,name‘default’, primary_type:‘retrofit2.Retrofit’] but has already registered [typeSingle,name‘default’, primary_type:‘okhttp3.OkHttpClient’]
a
because your definitions still have the same name & types
g
@arnaud.giuliani this is how i have tried to make use of naming
a
what version of Koin do you use?
g
Copy code
def koin_version = "2.0.1"
@arnaud.giuliani
a
in 2.0.1, you can’t reuse a qualifier for different types
fixed in 2.1
g
You mean the alpha one ?
Copy code
2.1.0-alpha-10
Awesome it worked, thanks @arnaud.giuliani
This is great i have just migrated to version 2 of Koin, so i should be able to test out few cases as i develop.