Androidのkotlin pluginのバージョン指定(ext.kotlin_version)でエラー:Your project requires a newer version of the Kotlin Gradle plugin
- Thu
- 16:12
- 未分類
Androidでbuildした時に
android build.gradle Your project requires a newer version of the Kotlin Gradle plugin
のエラーが発生した時の対処法。
/android/build.gradle にある「ext.kotlin_version」を最新に変更する。
versionが古い場合、
それを「ext.kotlin_version」に設定する。
android build.gradle Your project requires a newer version of the Kotlin Gradle plugin
のエラーが発生した時の対処法。
versionが古い場合、
dependencies { classpath 'com.android.tools.build:gradle:7.1.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" }の「$kotlin_version」の行にカーソルを持っていくと利用可能なversionが表示される。

それを「ext.kotlin_version」に設定する。
buildscript { ext.kotlin_version = ‘1.6.10’
- 関連記事
-
- NAS購入検討2022
- Androidのkotlin pluginのバージョン指定(ext.kotlin_version)でエラー:Your project requires a newer version of the Kotlin Gradle plugin
- emacsのelpyで「Your ‘python-shell-interpreter’ doesn’t seem to support readline・・・」のエラー
- Windows10 WSLにPython 3.8.6をinstall
- AppleとQualcomm、知的財産訴訟合戦終了
Comment
Trackback
- URL
- https://nosource.blog.fc2.com/tb.php/201-177c3ca0
- この記事にトラックバック(FC2Blog User)