Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execution failed for task ':expo-modules-core:compileDebugJavaWithJavac'

  • 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.

like image 909
Tran Duc Hoa Avatar asked Jul 08 '26 19:07

Tran Duc Hoa


1 Answers

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.

like image 62
Tran Duc Hoa Avatar answered Jul 10 '26 09:07

Tran Duc Hoa