2017-06-29 115 views
0

这是后续问题here。我最初尝试只安装在Android项目给出的.apk可执行文件,但现在我想建立的项目我自己,这是位于:https://github.com/garlicPasta/dotViewer在Android Studio中导入Gradle Android项目时出错

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

该项目采用摇篮,但是当我试图将其导入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. 

我试着用手动的gradle编译它(安装gradle这个2.10是兼容与该项目)。有更多经验的人可以帮助我导入和运行项目并找出编译时缺少的内容吗?

顺便说一句,有两个失踪。 java文件可以在编译.proto文件后生成。

回答

3

从Github导入Android-Project后,我有同样的错误。

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

0

我想这是一个问题gradle-2.14.1-all,当我将Gradle版本更改为3.3,然后同步项目。此问题消失。您可以尝试它。

相关问题