skip to Main Content
  • I build android for a react native project in Ubuntu. And I got this error.
    enter image description here

How can I fix this error? Please help me. Thank you first.

3

Answers


  1. Chosen as BEST ANSWER

    I tried a ton of ways. Finally, I find out where is the problem from. It's come from javac, I don't have a Java compiler yet. I reinstall Java follow this instruction: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-22-04

    Boom, the problem is resolved. I hope this help other people who have the same problem as me.


  2. Check if this helps!

    https://github.com/expo/expo/issues/17609#issuecomment-1189770234

    Try upgrading your gradle version using the upgrade assistant or use the instructions in the mentioned link above.

    Login or Signup to reply.
  3. In my case I just install: Java-11-openjdk-amd64

    But in your case install: Java-17-openjdk-amd64

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search