Service Locator is a dangerous pattern because it almost works . You can locate Dependencies from consuming classes, and you can replace those Dependencies with different implementations — even with Test Doubles from unit tests.
Read moreIs dagger a Service Locator?
Because of this, Dagger is not a clean DI but it does provide a good enough service in a special environment like Android. And now, we will look at Koin, why it is not called a Dependency Injector but a Service Locator .
Read more