Outdated Kotlin Runtime

環境構築Kotlin

実際に表示されたメッセージ内容

 状態:解決済  閲覧数:2,676  投稿日: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


エラー対応

 閲覧数:522 投稿日:2018-05-06 更新日:2018-05-06

手順


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


既存JAVAプロジェクトをKotlinへ変換



週間人気ページランキング / 3-3 → 3-9
順位 ページタイトル抜粋 アクセス数
1 Android FAQ 13
2 ★★ を型に解決できません | エラー(エラー) 4
3 Unexpected error while launching logcat | エラー(エラー) 3
3 R.java was modified manually! Reverting to generated version! | エラー(エラー) 3
4 [エラー] W/ResourceType(308): Failure getting entry for 0x7f030001 (t=2 e=1) in package 0: 0xffffffb5 | エラー(エラー) 2
4 Sorry! The application ★★ has stopped unexpectedly.Please try again. | エラー(エラー) 2
4 エラー対応 2
4 型 ○○親クラス名.△△ネストクラス名 は継承された抽象メソッド AsyncTask<第1引数,第2引数,第3引数>.doInBackground(Object...) を実装する必要があります | エラー(エラー) 2
5 Project build error: Non-resolvable parent POM: Failure to find | エラー 1
5 adb shell … error: device not found | Android Debug Bridge (adb) 1
5 インポートされた ★★ は見つかりません | エラー 1
5 ログイン 1
5 アプリをビルドして実行する | アプリ化(環境構築) 1
5 Project has no project.properties file! Edit the project properties to set one. | エラー(エラー) 1
5 Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties | エラー(エラー) 1
5 E/AudioPlayer(★★): FAILED renaming /mnt/sdcard/tmprecording.3gp to /android_asset/●●.mp3 | エラー 1
5 E/Trace(★★): error opening trace file: No such file or directory | エラー(エラー) 1
5 emulator-5554 disconnected! Cancelling | エラー(エラー) 1
5 この行に複数マーカーがあります | エラー(エラー) 1
5 The process android.process.acore has stopped unexpectedly. Please try again. | エラー(エラー) 1
2026/3/10 5:05 更新