luke_c
10/29/2018, 4:14 PMorangy
luke_c
10/29/2018, 4:18 PMkotlin {
experimental {
coroutines "enable"
}
}
Replaced
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.19.3'
With
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0'
Now I’m getting unresolved reference: DefaultDispatcher, lauch, UI, etcyole
10/29/2018, 4:20 PMluke_c
10/29/2018, 4:20 PMimport kotlinx.coroutines.experimental.DefaultDispatcher
import kotlinx.coroutines.experimental.launch
import kotlin.coroutines.experimental.CoroutineContext
import kotlinx.coroutines.experimental.android.UI
to
import kotlinx.coroutines.DefaultDispatcher
import kotlinx.coroutines.launch
import kotlin.coroutines.CoroutineContext
import kotlinx.coroutines.android.UI
luke_c
10/29/2018, 4:20 PMlouiscad
10/29/2018, 4:22 PMluke_c
10/29/2018, 4:24 PMlouiscad
10/29/2018, 4:26 PMVsevolod Tolstopyatov [JB]
10/29/2018, 4:26 PM0.19.0
and 1.0.0
and some of them were breaking (e.g. removal of DefaultDispatcher
).
In version 0.30.2
all such API is deprecated with proper replacements, so it is worth to update to 0.30.2 firstluke_c
10/29/2018, 4:31 PM