Error Message : (Lint message)

Library should be updated to be compatible with Kotlin 1.3 less... (Ctrl+F1) 

Inspection info: This inspection reports kotlinx.coroutines libraries dependencies in Gradle that should be updated in order to be compatible with Kotlin 1.3+


물론 build 는 completed successfully 이지만, 수정하자.


solution :

step1. coroutines 선언 부분 삭제

kotlin {
experimental {
coroutines
"enable"
}
}


step2. coroutines 버전 상향 1.1.1 (2019년 3월 11일 기준)

// Coroutines
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$rootProject.coroutines"
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$rootProject.coroutines"


ext {
coroutines = '0.26.1'
coroutines = '1.1.1'
}


comments : kotlin 1.3. 버전이 출시되면서 마이그레이션 됨.


링크 참조

https://github.com/Kotlin/kotlinx.coroutines 

https://blog.jetbrains.com/kotlin/2018/09/kotlin-1-3-rc-is-here-migrate-your-coroutines/

+ Recent posts