Below you will find pages that utilize the taxonomy term “DI”
Blog Posts
Setting up Koin for Android UI testing
Problem definition Recently I’ve come to a problem running my UI tests because of a DefinitionOverrideException. That’s an exception thrown by the Koin library when we have a duplicated definition for a particular type. The way we use Koin on Android is by starting the container in the onCreate() method of the Application class and loading the relevant modules into the container. Here is how it may look like: