我为我的 Compose 工程升级 AGP 后 (7.0.0 > 7.0.2)重新编译发生下面错误
ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.
以前需要通过该 composeOptions 指定 Kotlin 版本

升级后,直接复用 buildScript 的 Kotlin 版本, composeOptions 已经没用了,可以删掉即可
buildscript {ext.kotlin_version = '1.5.31'//....dependencies {classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"}
}


















