2 Answers
Read moreHow do I fix Java Runtime not found?
Enable the latest installed version of Java in the Java Control Panel
Read moreWhy does my Mac say unable to locate a Java Runtime?
The message “Unable to load Java Runtime Environment” means that the Mac computer cannot load JRE, either because it is out of date or (more usually) because it has not yet been downloaded and installed . It can also happen after the computer OS X has been updated, e.g. to 10.14 Mojave from 10.13 Maverick.
Read moreHow do I update Java in Flutter?
Go to File > Project Structure. Select the SDK Location section in the list of the left. Deselect the Use embedded JDK (recommended) option. Enter the absolute path of your installed JDK in the text box.
Read more