Build React Native App Error!

Hi guys, I’m trying to use React-Native and I installed all the things (android studio, java, sdk, jdk etc…) and always I receive the same error:

I could open the emulator and works perfectly but don’t build my app (my app is empty. Is the default template of React-Native when you start a project)
I did 3 o 4 tutorials doing all the steps and I don’t know where is the problem.

Someone can help me please? :slight_smile: Thanks!

You probably need a JDK.

pamac install jdk11-openjdk

Thanks for your reply. I installed and also I installed others versions because I read maybe with version 8 works and nothing :frowning:

image

I will try again with your command

I don’t know what happened, but I did your command and works all perfectly.
But It’s very weird because I had that version and was the first version that I was installed.

Thanks @mithrial

There is a difference between the JRE (Java Runtime Environment) and the JDK (Java Development Kit).

The JRE is needed to run java applications, the JDK is needed to build applications. The JRE (jre11-openjdk) is installed by default and not the JDK ( jdk11-openjdk). The archlinux-java status command list JRE’s.

2 Likes

Thanks @xabbu and @mithrial again! ^^

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.