【问题标题】:Gradle dependecies cache may be corrupt in android studio?android studio 中的 Gradle 依赖项缓存可能已损坏?
【发布时间】:2017-07-25 05:30:38
【问题描述】:
Error:Unable to find method 'org.gradle.api.artifacts.dsl.DependencyHandler.registerTransform(Ljava/lang/Class;Lorg/gradle/api/Action;)V'.
Possible causes for this unexpected error include:

    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.

在 Gradle 进程损坏的情况下,您也可以尝试关闭 IDE,然后杀死所有 Java 进程。

【问题讨论】:

  • 你试过禁用插件吗?
  • @MichaelVescovo 还没有!
  • 试试看,如果有效,请告诉我......
  • @MichaelVescovo 谢谢兄弟!它的工作!
  • 好的,很好。我将评论移至答案。请接受。谢谢。

标签: android android-studio dependencies android-gradle-plugin build.gradle


【解决方案1】:

尝试禁用插件,因为它提到可能存在不兼容的插件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-04
    • 1970-01-01
    • 1970-01-01
    • 2023-03-20
    • 2016-10-27
    • 2017-07-24
    • 2017-07-27
    相关资源
    最近更新 更多