【发布时间】:2016-11-21 10:13:23
【问题描述】:
我遇到了这种错误,如何解决。
Error:Unable to load class 'org.gradle.tooling.internal.protocol.test.InternalTestExecutionConnection'.
Possible causes for this unexpected error 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.
【问题讨论】:
-
请检查我的回答。就我而言,这是 JDK 路径问题。 stackoverflow.com/a/44583007/3265444
-
在您的 gradle 下载过程中 Internet 断开连接时会出现问题。所以去 C:\Users\your username\.gradle\wrapper\dists\gradle-6.5-bin 并删除 zip 文件。重新打开项目,gradle 将再次开始下载 100mb 文件。
标签: android gradle gradle-plugin