実際に表示されたメッセージ内容
状態:解決済
閲覧数:2,369
投稿日:2018-05-06
更新日:2018-05-06
Your version of Kotlin runtime in 'Gradle
'Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.2.40@jar' library の Kotlin runtime
・1.2.40-release-66 (1.2.40)
plugin version
・1.2.41-release-Studio3.1-1
13:01 Outdated Kotlin Runtime
Your version of Kotlin runtime in 'Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.2.40@jar' library is 1.2.40-release-66 (1.2.40), while plugin version is 1.2.41-release-Studio3.1-1.
Runtime library should be updated to avoid compatibility problems.
Update Runtime Ignore
Your version of Kotlin runtime in 'Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.2.40@jar' library is 1.2.40-release-66 (1.2.40), while plugin version is 1.2.41-release-Studio3.1-1.
Runtime library should be updated to avoid compatibility problems.
Update Runtime Ignore
エラー対応
手順
1.(Project:[projectName])build.gradleファイルを開く
2.ext.kotlin_version = 'x.x.x'を探して、x.x.xを現在のKotlinプラグインバージョンへ変更する
対応例
修正前
▼build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.40'
repositories {
google()
jcenter()
}
修正後
▼build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.41'
repositories {
google()
jcenter()
}
Outdated Kotlin Runtime warning in Android Studio