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

therealbluepandabear

03/23/2021, 4:49 AM
Why am I getting an unresolved reference here:
g

gildor

03/23/2021, 5:06 AM
does it compile? looks as some IDE issue
t

therealbluepandabear

03/23/2021, 5:13 AM
@gildor no it doesn't.
@gildor it seems as though the plug in itself isn't working - but I did add what was necessary to build.gradle 😕
g

gildor

03/23/2021, 5:27 AM
What kind error do you have?
t

therealbluepandabear

03/23/2021, 7:05 AM
@gildor this error: (there are more details.)
g

gildor

03/23/2021, 7:21 AM
You need mavenCentral in repositories
also, are you sure that you use new Gradle?
it may be related to a fact that new versions of kotlinx.coroutines use Gradle Metadata, so it allows to use the same dependency for all platfroms
actually, now I’m checking your error message, and it looks that you just have space and ' in your dependency declaration
😅 1
t

therealbluepandabear

03/23/2021, 7:22 PM
@gildor Oops 😁
@gildor the problem seemed to be with my Kotlin verison - I updated it to 1.4.30 and it works now. 🙂 Thanks though.
g

gildor

03/23/2021, 11:36 PM
I don't think that it's related to version of Kotlin
t

therealbluepandabear

03/24/2021, 12:43 AM
@gildor Well it was, if you have a look at the documentation it says it quite explicitly: Thanks for the help 👌
82 Views