https://kotlinlang.org logo
#coroutines
Title
# coroutines
m

mayojava

05/17/2020, 1:58 PM
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

Rachid

05/17/2020, 2:45 PM
No idea, but when you scroll a bit back I would expect to see an explicit message on what has failed.
m

mayojava

05/18/2020, 2:09 AM
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

araqnid

05/18/2020, 6:02 AM
Are you building with a JDK version 9 or higher?
Because the java.util.concurrent.Flow only dates from then
m

mayojava

05/18/2020, 8:13 AM
yeah I have java 9 installed and set in my environment var under JDK_9. Was surprised when I still got the error regardless
8 Views