共计 615 个字符,预计需要花费 2 分钟才能阅读完成。
输出
┌─ 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:projectlearnandroidbuild.gradle: │
│ ext.kotlin_version = ‘
└────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
尝试过的
1. 加入代码
buildscript {
ext.kotlin_version = ‘
repositories {
google()
mavenCentral()
2. 手动下载 kotlin 并配置环境变量
下载的 kotlin 和 Android studio 里的插件都是 1.9.23
我应该做什么