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

elect

10/22/2018, 9:41 PM
trying to play with coroutines in 1.3 190 I get:
Copy code
Class 'kotlinx.coroutines.BuildersKt__Builders_commonKt' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler Class 'kotlinx.coroutines.CoroutineStart' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler Class 'kotlinx.coroutines.Job' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler Class 'kotlinx.coroutines.Job' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
e

elizarov

10/22/2018, 10:05 PM
Double-Check your versions in dependencies
ps: I'm off, to tomorrow 🙂
hei @elizarov did you see my deps?
e

elizarov

10/23/2018, 4:27 PM
org.jetbrains.kotlinx:kotlinx-coroutines-core:0.24.0-eap13
That is what I see and it is why you get the message
You should be using
1.0.0-RC1
version
e

elect

10/23/2018, 5:15 PM
so, I'm using that
it looks like successfully imported
but it cant find
launch
apparently
e

elizarov

10/23/2018, 5:15 PM
But I see a different version in your dependenceis
Copy code
+--- org.jetbrains.kotlinx:kotlinx-coroutines-core:0.24.0-eap13
also
jcenter
is there
e

elizarov

10/23/2018, 5:18 PM
IDK. the gist you’ve attached shows a different version
e

elect

10/23/2018, 5:20 PM
it was the old one
I updated following your tuip
e

elizarov

10/23/2018, 5:21 PM
So, does it work for you now?
(if not, what’s the error)
e

elect

10/23/2018, 5:23 PM
no
it cant find
launch
and
import kotlinx.coroutines.launch
appears unused
if I click on it I end up in the
1.0.0-RC1-sources.jar
e

elizarov

10/23/2018, 5:24 PM
Hm…. That is strange. Did it import into IDE without errors?
e

elect

10/23/2018, 5:24 PM
lets invalidate
yes
e

elizarov

10/23/2018, 5:25 PM
Try invalidate caches / restart. That might be the problem because of old (pre-release) classes
Everything else looks Ok to me
e

elect

10/23/2018, 5:26 PM
nothin, always unresolved
could you give a try and clone it?
e

elizarov

10/23/2018, 5:58 PM
Works fine for me.
You should probably update your Kotlin Plugin in IDEA to the latest EAP RC build
e

elect

10/23/2018, 6:03 PM
isnt 190?
it looks so here