Just so I'm sure I'm not losing my mind...I have a...
# coroutines
i
Just so I'm sure I'm not losing my mind...I have a library using coroutines, written in Kotlin. This library has a function, wrapped with
runBlocking
, that when I try to call from a java application, I get this:
java.lang.NoSuchMethodError: kotlinx.coroutines.DelayKt.delay
. For testing, this is all the method does, so I can fix why Java is choking on it.
Copy code
override fun pollMsg() = runBlocking {
    delay(1000)
}
The library has both Kotlin 1.3 and kotlinx.coroutines 1.0.1 as dependencies. Does the calling application need some kotlin libraries as well?