无法加载类'org.gradle.tooling.provider.model.ToolingModelBuilder'

时间:2018-05-22 09:45:24

标签: android gradle rx-java

我尝试阅读项目RxJava的源代码,我认为旧版本可能更容易学习 所以我下载了RxJava-0.1.2和RxJava-1.0.0版本 但是当我尝试在Android Studio中运行它们时,我遇到了很多错误 如:
Unable to load class 'org.gradle.tooling.provider.model.ToolingModelBuilder'. 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.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

我尝试更改distributionUrl,我得到java.lang.String cannot be cast to org.gradle.api.artifacts.Configuration
然后我将所有plusConfigurations += configurations.provided更改为plusConfigurations += [configurations.provided],但仍然无效 我该如何解决这些错误? 或者我该如何学习该项目?

0 个答案:

没有答案