Member-only story
Android — kotlinCompilerVersion is deprecated — Solved
Creating Jetpack Compose project using the “Empty Compose Activity” Android Studio (2020.3.1 Canary 14) template
Oct 1, 2021
‘kotlinCompilerVersion: String?’ is deprecated.
Solution
kotlinCompilerVersion
can be safely removed.
Compose now uses the kotlin compiler defined in your buildscript
.
buildscript {
ext.kotlin_version = '1.5.21'
//....
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
If you are using the plugins
block (in settings.gradle
or build.gradle
)
pluginManagement {
//..
plugins {
id 'org.jetbrains.kotlin.android' version '1.5.21'
}
}