I am trying to run an Android emulator in my mac from the Ionic project through the command prompt. I have all setup of the android studio and its running well. However, when I try to generate the emulator I am unable to do it from the ionic terminal project. I am thrown with the following errors.
Cordova build android Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=/Users/mac/Library/Android/SDK (recommended setting) ANDROID_HOME=/Users/mac/Library/Android/SDK (DEPRECATED) Requirements check failed for JDK 8 ('1.8.*')! Detected version: 14.0.1 Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables. [ERROR] An error occurred while running subprocess Cordova.