小编Wil*_*ute的帖子

找不到方法 - 将 kotlin-gradle-plugin 从 1.6.21 升级到 1.7.10 时出错

我收到以下错误,

Unable to find method ''org.gradle.api.tasks.SourceTask org.jetbrains.kotlin.gradle.tasks.KotlinCompile.source(java.lang.Object[])''
'org.gradle.api.tasks.SourceTask org.jetbrains.kotlin.gradle.tasks.KotlinCompile.source(java.lang.Object[])'

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested …
Run Code Online (Sandbox Code Playgroud)

android kotlin build.gradle android-gradle-plugin kotlin-gradle-plugin

13
推荐指数
2
解决办法
6150
查看次数