Skip to content Skip to sidebar Skip to footer

Java_home Is Not Set Error, After Running React-native App

PS C:\Users\Prabhudev\react-projects\react-native\myFirstApp> react-native run-android info JS server already running. info Building and installing the app on the device (cd and

Solution 1:

First Add the JDK and JRE paths to the System Variable "Path" like below: enter image description here

Secondly, Add the JAVA JDK path to the USER variable as JAVA_HOME. as shown below: enter image description here

Restart the cmd and go to the app directory and run the app with react-native run-android Voila: enter image description here

Post a Comment for "Java_home Is Not Set Error, After Running React-native App"