问题描述
插件版本 (1.6.21) 与库版本 (1.6.10) 不相同
This version (1.1.0) of the Compose Compiler requires Kotlin version 1.6.10 but you appear to be using Kotlin version 1.6.21 which is not known to be compatible. Please fix your configuration (or suppressKotlinVersionCompatibilityCheck
but don’t say I didn’t warn you!).
解决方案:
在项目根目录的build.gradle中修改为:
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
}