project ':player' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
来源:1-1 课前必读(不读错过一个亿)

爱一代
2023-06-02
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 ‘:player’ -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 -
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 743ms
Exception: Gradle task assembleDebug failed with exit code 1
这个问题怎么处理急求解决方案
1回答
-
马超老师
2023-06-29
这个是因为你本地的Android Gradle插件和Kotlin版本不匹配导致的,可以修改一下Kotlin插件。
找到工程中的build.gradle文件,在classPath中找到,或者添加以下依赖:
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
也可以提取出kotlin的版本号,修改到1.5.20或者更高版本即可
ext.kotlin_version = '1.5.20'
012023-12-23
相似问题