当我试图用flutter run
构建我的颤振项目时,我会得到以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':location' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 31s
Running Gradle task 'assembleDebug'... 33,1s
这是完全错误,但在我看来,我已经有了1.6.10的Kotlin版本,这个版本已经高于1.5.20
有人有这方面的经验吗?提前感谢!
发布于 2022-10-21 13:08:54
在“依赖”部分,您已分配了$kotlin_version。所以,与之相反,你可以这样做
dependencies{
classpath "org.jetbrains,kotlin:kotlin-gradle-plugin:1.6.10"
}
https://stackoverflow.com/questions/74154016
复制相似问题