在Android Studio中导入Gradle Android项目时出错

Tin*_*a J 3 android gradle gradlew android-studio android-gradle-plugin

这是一个后续问题在这里.我最初只是尝试安装.apkAndroid项目给出的可执行文件,但现在我正在尝试自己构建项目,该项目位于:https://github.com/garlicPasta/dotViewer

它本质上应该.ply从服务器接收3D图形文件(格式)并将其可视化.

该项目正在使用Gradle,但是当我尝试在Android Studio中导入它时,我看到以下消息:

Error:Unable to find method 'com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>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.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Run Code Online (Sandbox Code Playgroud)

我尝试用gradle手动编译它(安装了gradle 2.10以与项目兼容).有经验的人可以帮我导入和运行项目并找出编译时缺少的内容吗?

BTW,有两个失踪.java编译.proto文件后可以生成的文件.

小智 5

从Github导入Android-Project后,我遇到了同样的错误.

我可以通过PROJ_DIR/.idea/gradle.xml从现有项目复制文件来修复它.