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 {"enable"
experimental {
coroutines
}
}
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/
'안드로이드 > Error' 카테고리의 다른 글
[android][error]webview (0) | 2020.01.20 |
---|---|
[Android, error] androidx 적용 (0) | 2019.03.21 |
[android][error]project refresh failed - cache.properties.lock (0) | 2015.11.19 |
[android][error]cannot find symbol variable HttpStatus (0) | 2015.11.17 |
[android][error]No resource found that matches the given name (0) | 2015.02.04 |