Nathan Kleinschmidt
04/26/2022, 11:17 PMget()
, and the application crashes on startup. Is the documentation incomplete or am I missing something? I am trying this in a minimal Compose app using Koin v. 3.1.6
val appModule = module {
// MyViewModel ViewModel
viewModel { MyViewModel(get()) }
}
Nathan Kleinschmidt
04/26/2022, 11:57 PMandroidLogger()
that is causing the crash. If I comment out this line, then the app builds and runs.
class MyApplication : Application(){
override fun onCreate() {
super.onCreate()
// Start Koin
startKoin{
androidLogger()
androidContext(this@MyApplication)
modules(appModule)
}
}
}
The error message:
java.lang.NoSuchMethodError: No static method toDouble-impl(JLjava/util/concurrent/TimeUnit;)D in class Lkotlin/time/Duration; or its super classes (declaration of 'kotlin.time.Duration' appears in /data/app/~~42eIZ0Lt8qeHdx0T9j6fIw==/net.nkl3in.ktorauth-6spPD0q9sBe4yl3Row5oqA==/base.apk)
at org.koin.core.time.MeasureKt.measureDuration(Measure.kt:32)
miqbaldc
04/27/2022, 2:37 AMmiqbaldc
04/27/2022, 2:37 AMNathan Kleinschmidt
04/27/2022, 10:25 AMmiqbaldc
04/27/2022, 11:01 PM