I have recently updated the version of Kotlin
to 1.4.0-rc
.
Since then Koin
is returning the run time error below:
java.lang.NoSuchMethodError: No virtual method elapsedNow()D in class Lkotlin/time/TimeMark
With the latest alpha version the problem is solved in my case.
// latest unstable
koin_version = '2.2.0-alpha-1'
implementation "org.koin:koin-androidx-scope:$koin_version"
implementation "org.koin:koin-androidx-viewmodel:$koin_version"
implementation "org.koin:koin-androidx-fragment:$koin_version"
Go to the main documentation for more details: Koin latest version
Another way to avoid the problem is how @Aydinozkan says by setting the logger level to error or none.
startKoin {
androidLogger(Level.NONE)
}