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.

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'


0
1
慕圣1287429
碰到了同样的问题,现在工程的kotlin版本是1.6.0,代码: ext.kotlin_version = '1.6.0' 依旧有同样的build错误提示:我觉的应该是player工程的kotlin版本低造成的,求解决 * 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
2023-12-23
共1条回复

基于Flutter 3.x 实战跨平台仿抖音App混合开发

以短视频APP为例,快速上手原生/Flutter 混合开发

481 学习 · 120 问题

查看课程