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

Will Mwendwa

02/16/2021, 9:40 AM
Currently doing a tutorial but when I run this code from the tutorial it runs an error can anyone help
w

wasyl

02/16/2021, 9:42 AM
Have you added coroutines dependency to the project?
w

Will Mwendwa

02/16/2021, 9:42 AM
Not yet as am actually a beginner in coroutines and was just following what the doc says
w

wasyl

02/16/2021, 9:46 AM
I see you’re using Gradle. In that case you need to add
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
in
dependencies
section in your
build.gradle
w

Will Mwendwa

02/16/2021, 9:56 AM
Thanks man it really solved my problem
👍 1
3 Views