I get the same issue as in this question when I do react-native run-android. I think it wants java 11 but I want to continue with 1.8. How can I do it?
I get the same issue as in this question when I do react-native run-android. I think it wants java 11 but I want to continue with 1.8. How can I do it?
what you need to do;
or
After doing all of them, delete your old React Native project and install a new one.
or
Try following commands:
nano ./zshrc
Find JAVA_HOME and replace with your v11 java path. You can find the path here:
/usr/libexec/java_home -V
Save the file, re-launch the terminal and try again.