Koin 2.0 propose a new way of starting your Koin application. Instead of having multiple startKoin function, related to each extended runtime, we now only have one startKoin fucntion and several ways to extend it for your platform:
In a classical Kotlin file:
Starting Koin for Android
In any Android class:
if you can't inject android context or appliation, be sure to use androidContext() function in your Koin application declaration.
Starting Koin for Ktor
Starting Koin from your Application extension function:
At start, Koin log what definition is bound by name or type:
Koin Module DSL hasn’t change much (appart the Scope API that will need entire rework), most changes can then fixed with imports. Take a note that there is no more inner module or visibility rules for this. Module visibility is simple. Those are just list of definitions, visibile everywhere.
Clean and reimport Koin API should fix most of your problem