Ionic cordova run android ERROR - NEWBIE

#1

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.

#2

Try to install Android Studio from here: https://developer.android.com/studio

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

#3

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

#4

Ok, did you intalled Oracle JDK?

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

#5

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…