输出 ┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project requires a newer version of the Kotlin Gradle plugin. │ │ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │ │ update D:\project\learn\android\build.gradle: │ │ ext.kotlin_version = '<latest-version>' │ └────────────────────────────────────────────────────────────────────────────────────────────┘ Error: Gradle task assembleDebug failed with exit code 1
尝试过的 1.加入代码 buildscript { ext.kotlin_version = '<latest-version>' /// use latest-version,尝试过输入各种版本 repositories { google() mavenCentral()
2.手动下载 kotlin 并配置环境变量
下载的 kotlin 和 Android studio 里的插件都是 1.9.23
我应该做什么