Hi, I'm Ini... I recently hopped on the kotlin boa...
# coroutines
f
Hi, I'm Ini... I recently hopped on the kotlin boat I'm using 'kotlin apprentice' as a reference - by R. Wenderlich - currently I'm studying coroutines... My issue: kotlinx dependency isn't building...so I used Retrofit dep (build.gradle) cuz Retro includes coroutines out of the box 🎁 Retro dep builds...autocomplete for kotlinx.coroutines.* works, yet features are red - dispatchers, launch, run blocking etc... I'll search to see if anyone else has this problem here anyways I'm proud to meet you guys and I hope we can do some work - good work together! #coroutines
j
How are you adding the dependency on kotlinx.coroutines? Is the build failing when you run Gradle from command line or only from the IDE? What's the error then?
n
Maybe try deleting that space in front of 1.6.0?
4
f
Nick, the build was success...yet red everywhere...
j
When you say the build is a success, are you running it from command line or from the IDE? If from the command line, which command? If from the IDE, how? Is it via a run configuration or a task in the Gradle panel? Did you try refreshing the Gradle configuration after your change in
build.gradle.kts
? (clicking the "refresh" button in the Gradle tool window)
l
That's expected, you should run Gradle, not kotlinc to get Gradle scripts live.
1
j
The error on the screenshot does look genuine though, what does the source file look like? Are you trying to pass a
Job
where an
Int
is expected?