Outdated Kotlin Runtime

環境構築Kotlin

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

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


エラー対応

 閲覧数:593 投稿日: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へ変換



週間人気ページランキング / 6-16 → 6-22
順位 ページタイトル抜粋 アクセス数
1 Android FAQ 19
2 この行に複数マーカーがあります | エラー(エラー) 8
3 Error running MainActivity: Gradle project sync failed. Please fix your project and try again. | Gradle(環境構築) 4
4 「クラス名」変更 | クラス(環境構築) 3
5 public 型 ★★ はそれ独自のファイル内に定義されなければなりません | エラー 2
5 文字列リテラルがダブル・クォートによって正しく閉じられていません | エラー(エラー) 2
5 Unexpected namespace prefix "xmlns" found for tag LinearLayout | エラー(エラー) 2
5 Eclipseが起動しない … ユーザ操作は待機中です | Eclipse(IDE) 2
5 キーバインドの競合が発生しました。 通常のアクセラレーター操作を妨げる可能性があります。 | エラー(エラー) 2
6 いくつかのプロジェクトは、ワークスペース・ディレクトリーにすでに存在するため、インポートできません | エラー 1
6 メソッド onCreate(Bundle) は型 Object で未定義です | エラー 1
6 「Android Studio 3.0.1」で、デザインプレビュー画面が表示されない。「waiting build for finish」が終わらない | Android Studio(IDE) 1
6 Eclipse で「プロジェクト名」「パッケージ名」を変更する方法 | Eclipse(IDE) 1
6 エミュレータ中身を「ファイル・エクスプローラ」で確認したいのに、何も表示されない | Eclipse(IDE) 1
6 emulator: エラー: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration. | エラー(エラー) 1
6 Android Studio 3.1.2 で、パレットの「Widgets」内にSpinnerが表示されないため、選択出来ない | Android Studio(IDE) 1
6 Android Studio の Designプレビュー で、ウィジェットをドラッグ配置できない | Android Studio(IDE) 1
6 インポートされた ★★ は見つかりません | エラー 1
6 Unbind failed: could not find connection for android.os.BinderProxy@★★ | エラー(エラー) 1
6 This text field does not specify an inputType or a hint | 警告(エラー) 1
2026/6/23 5:05 更新