1

This is a follow-up question here. I was initially trying to just install the .apk executable, but now I am trying to build the project located at: https://github.com/garlicPasta/dotViewer

It is essentially supposed to receive a 3D graphics file (.ply format) from the server and visualize it.

The project is using Gradle, but when I'm trying to import it in Android Studio, I see the following message:

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.

Can someone with more experience help me to import and run the project and find out what is missing for compiling?

UPDATE: There are two missing .java files which can be generated after compiling the .proto files.

  • Have you "installed" gradle using a similar process as here? stackoverflow.com/questions/26254526/… – Eric F Jun 27 '17 at 18:55
  • @EricF Thanks, but Gradle is installed on AS and it uses a wrapper to automatically download the best version for it. Is there a need to manually install it again? – Tina J Jun 28 '17 at 21:50
  • @EricF I did the process. Again having problems loading in AS with the same errors. – Tina J Jun 28 '17 at 23:13
  • I was just making sure you installed it the "correct way" which seems like you did... Do you have java installed? to the right version required by this? – Eric F Jun 29 '17 at 12:58
  • Yes. I'm developing apps for a while. This one is tricky for some reasons. Did you try importing the project on your end? – Tina J Jun 29 '17 at 14:09
1

After generating the java files out of .proto files, the project could compile perfectly on command line through gradlew. For Android Studio, I just imported the project as a new project and no more errors.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.