Setup and add required dependencies in your gradle or pom file:
gradle
pom
https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-corearrow-up-right
If you are using an older version of Retrofit than 2.6.0 then you have to add the Kotlin Coroutine Adapter: https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapterarrow-up-right
2.6.0
Last updated 5 years ago