这是后续问题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
文件后生成。