Skip to content

下载下来编译不过 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fangood opened this issue Jul 19, 2018 · 1 comment
Closed

下载下来编译不过 #1

fangood opened this issue Jul 19, 2018 · 1 comment

Comments

@fangood
Copy link

fangood commented Jul 19, 2018

``Unable to find method 'com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)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.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

@liweijieok
Copy link
Owner

liweijieok commented Jul 19, 2018

你有按照这个提示去解决么?
可以尝试用他给的提示去解决。
可能跟你的本机gradle不匹配,你更换一下项目的gradle插件版本的wrapper,换成你本机的(就是下载过的以前其他项目可用的gradle插件版本)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants