【发布时间】:2021-04-10 08:52:13
【问题描述】:
Gradle 同步错误。请帮我解决这个问题。我用谷歌搜索了它,但没有一个解决方案有效。
.groovy.ast.expr.ArgumentListExpression
org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression
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 by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Consult IDE log for more details (Help | Show Log) (5 m 2 s 700 ms)
02:15 PM Gradle sync started
02:16 PM Gradle sync failed: org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression
org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression
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 by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Consult IDE log for more details (Help | Show Log) (3 s 62 ms)
【问题讨论】:
-
你检查过日志吗?你还会发布你的 build.gradle(项目级别)和 build.gradle(应用程序/模块级别)文件
标签: android android-studio android-gradle-plugin build.gradle development-environment