Error on Mac Unable to find suitable JDK installation

I have reinstalled the JDK multiple times from here:

Supposedly that should be enough for me to build an android APK, but it keeps coming up with the same error

Unable to find suitable JDK installation.
Please make sure you have a suitable JDK installation. Android development requires at least JDK 7 (1.7), having JRE only is not enough. The latest JDK can be obtained from the Oracle website

I can not find anything anywhere to solve this for mac that works.

You should go to /Library/Java/JavaVirtualMachines/jdk1.8/Contents/Home

and choose home.

Thats it