Ionic cordova run android ERROR - NEWBIE


When I run ionic cordova run android I get the following Error…

Even When I set JAVA_HOME environment variable I am still having this error…
Can anyone tell me whats the problem and How can I solve this…
Thank you.


Try to install Android Studio from here:

Should be enough but if not, install java from


I have already installed latest version of both of them still it doesnt work.


Ok, did you intalled Oracle JDK?


I found what was the problem.
My jre was 1.8 and my jdk was 11 which is the latest.
So i download jdk 1.8 and my problem was fixed.
Thanks for the reply btw…