Gradle dependecies缓存在android studio中可能会损坏?

时间:2017-03-05 10:17:07

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

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进程。

1 个答案:

答案 0 :(得分:1)

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