【问题标题】:Gradle Sync error occured. Help to Fix this发生 Gradle 同步错误。帮助解决这个问题
【发布时间】: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


【解决方案1】:

我认为问题出在您用于此项目的库之一,您应该单独检查每个库以查看问题所在。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-02-22
    • 2021-02-11
    • 1970-01-01
    • 2022-12-02
    • 2021-03-07
    • 2020-08-06
    • 2019-05-22
    • 1970-01-01
    相关资源
    最近更新 更多