Invalid JDK home selected (Mac)

I am trying to build a game for Android but Unity is unable to find the JDK I am assigning. I am dragging in the directory file: /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home. Is this not the right file directory? I was able to get the SDK in without an issue, but the JDK is a big problem. I have also set up JAVA_HOME using terminal properly. The command $echo JAVA_HOME in terminal returns the proper directory.

Had to update Unity.