First Add the JDK and JRE paths to the System Variable "Path"
like below:
Secondly, Add the JAVA JDK path to the USER variable as JAVA_HOME. as shown below:
Restart the cmd and go to the app directory and run the app with react-native run-android
Voila:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…