0

I am currently getting and build failed error. Tried uninstalling android studios, uninstall and reinstall java but to no avail. Appreciate any advice here. Thank you.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:greendao'.

    Found 4 problem(s) parsing "/xxx/android/app/src/main/java/com/eatsy/printer/Printer.java". First problem: Pb(324) The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files (16777540 at line 1).

Android Studio 3.2 Build #AI-181.5540.7.32.5014246, built on September 18, 2018 JRE: 1.8.0_152-release-1136-b06 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.13.6

2
  • Possible duplicate of this SO question? Commented Oct 11, 2018 at 5:54
  • Nope. I am currently using Android Studios. Hence its a different problem Commented Oct 11, 2018 at 6:46

1 Answer 1

2

Please use Oracle JDK. OpenJDK has some issues with greenDAO. for me OracleJDK works perfect. To install OracleJDK please follow the instructions in this link.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.