You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: org.koin.error.DependencyResolutionException: Multiple definitions found for type 'interface com.example.nkirilov.playground.Toaster (Kotlin reflection is not available)' - Koin can't choose between :
Scope [name='UserScope',class='com.example.nkirilov.playground.Toaster']
Scope [name='AnonScope',class='com.example.nkirilov.playground.Toaster']
Check your modules definition, use inner modules visibility or definition names.
Expected behavior
Koin will automatically create necessary implementation of Toaster interface depend on what scope was created.
Describe the bug
Main thing is that visibility is not restraint against with the scope.
To Reproduce
To reproduce this bug:
private val toaster: Toaster by inject()
Expected behavior
Koin will automatically create necessary implementation of Toaster interface depend on what scope was created.
Koin lib version
koin-core version 1.0.0-RC-3
Sample project with this problem
Problem is here
The text was updated successfully, but these errors were encountered: