Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
进入你的 android > settings.graddle 文件并查找:
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}
在队列中
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
将版本更改为最新版本。 就我而言,我的版本是 1.8.22,但我认为最后一个版本实际上是 2.0.0