Home > Software engineering >  Execution failed for task ':expo-modules-core:compileDebugJavaWithJavac'
Execution failed for task ':expo-modules-core:compileDebugJavaWithJavac'

Time:09-13

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

CodePudding user response:

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.

CodePudding user response:

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.

  • Related