Hi, I am new to kotlin and just started using Coro...
# getting-started
r
Hi, I am new to kotlin and just started using Coroutines. I have few doubts. 1. If Coroutines is a language feature then why do we need to add dependencies. 2. How can I try latest 1.3 RC version in Android Studio. I tried following (and of course at its right place)
Copy code
// Downloaded 1.3. early preview plugin of Kotlin for Android Studio

ext.kotlin_version = '1.3.0-rc-46'
// ext.kotlin_version = '1.3.0-rc-57'
maven { url '<https://dl.bintray.com/kotlin/kotlin-eap>' }
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.1") {
        exclude group: "org.jetbrains.kotlinx", module: "atomicfu-common"
    }
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.30.1'
Above setup giving me error
No route to host (connect failed)
3. What working for me is just
Copy code
ext.kotlin_version = '1.2.71'

implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.1") {
        exclude group: "org.jetbrains.kotlinx", module: "atomicfu-common"
    }
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.30.1'
Please guide me in the right direction. Thanks.
r
The dependency is for common coroutine builders and the like, not coroutines themselves. For coroutines questions, you can ask in #coroutines, and for Android questions, you can ask in #android.
Hopefully someone smarter than I can help you out more, but timezones can often work against you here. You may need to wait a while for people on the other side of the world to wake up.
😃 1
r
@Ruckus Thanks
👍 1