Ionic cordova run android ERROR - NEWBIE

Hello,
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: https://developer.android.com/studio

Should be enough but if not, install java from java.com.

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

Ok, did you intalled Oracle JDK?

https://www.oracle.com/technetwork/java/javase/downloads/index.htm

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…