且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

kotlinCompilerVersion 已弃用

更新时间:2023-11-24 12:07:58

kotlinCompilerVersion 可以安全删除.
Compose 现在使用 buildscript 中定义的 kotlin 编译器.

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"
    }
}

如果您正在使用 plugins 块(在 settings.gradlebuild.gradle 中)

If you are using the plugins block (in settings.gradle or build.gradle)

pluginManagement {
    //..
    plugins {
        id 'org.jetbrains.kotlin.android' version '1.5.21' 
    }
}