【发布时间】: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