Requirements check failed for JDK 1.8 on Mac

Hi there, I get this error anytime I try to run my app on an android emulator or device.

From looking it up online its likely something to do with my java versioning… but on my Mac I’m really not sure how to resolve.

I’ve now downloaded a correct java version (I think), but I’m not sure how to point JAVA_HOME to it.
Ive also tried deleting Java and reinstalling but cordova seems to still be pointing at the wrong version.

Please help as I now cannot continue the development of an app :frowning:

Many thanks!

Did you find a solution?

Hi Sam,

Yeah after some time I found that I needed to set the JAVA_HOME variable like so…

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home"

This seems to have sorted the problem for me at least.

Thanks