I am trying to build the `kotlinx.coroutines` libr...
# coroutines
m
I am trying to build the
kotlinx.coroutines
library but this task is constantly failing
Task :kotlinx-coroutines-jdk9:compileKotlin FAILED
. I will appreciate any pointers to solving this
r
No idea, but when you scroll a bit back I would expect to see an explicit message on what has failed.
m
a series of errors like this
e: /IdeaProjects/kotlinx.coroutines/reactive/kotlinx-coroutines-jdk9/src/Await.kt: (21, 24): Unresolved reference: Flow
e: /IdeaProjects/kotlinx.coroutines/reactive/kotlinx-coroutines-jdk9/src/Publish.kt: (37, 25): Cannot access class 'java.util.concurrent.Flow.Publisher'. Check your module classpath for missing or conflicting dependencies
a
Are you building with a JDK version 9 or higher?
Because the java.util.concurrent.Flow only dates from then
m
yeah I have java 9 installed and set in my environment var under JDK_9. Was surprised when I still got the error regardless