I have tried to run ionic cordova build android command in cmd .I am getting Requirements check failed for JDK 8 ('1.8.*')! Detected version: null error .I have added JAVA_HOME environment variables and path variables.
System Variables: JAVA_HOME-C:Program Files (x86)Javajdk1.8.0_271 ANDROID_HOME-C:UsersLenovoAppDataLocalAndroidSdk ANDROID_SDK_ROOT-C:UsersLenovoAppDataLocalAndroidSdk
Path variables : %JAVA_HOME%in C:Program Files (x86)Common FilesOracleJavajavapath
enter image description here
2.1m questions
2.1m answers
60 comments
57.0k users