Hi, why an i getting this exception when calling d...
# getting-started
s
Hi, why an i getting this exception when calling delay(1.minutes) ?
Copy code
DisposingScope(parentDisposable).launch {
    delay(1.minutes)
    ...
}
compilation passes and its calling
Copy code
public inline val Int.minutes get() = toDuration(DurationUnit.MINUTES)
Unhandled exception in [StandaloneCoroutine{Cancelling}@43e73ea6, Dispatchers.Default] java.lang.NoSuchMethodError: 'long kotlin.time.DurationKt.toDuration(int, kotlin.time.DurationUnit)'
y
Seems like an issue with dependency versions. Make sure you're using the same version of Kotlin everywhere