In Android Studio Preferences Appearance & Behavior System Settings Updates I tried to enable the Use secure connection parameter:

But when I clicked the Apply button, the error "Secure connection is not supported on Java 6" :

I checked the JDK location setting in Project Structure , and /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home :

It seems like I'm using Java 7 and not Java 6. Then why does the secure connection option complain about unsupported Java 6?
If necessary, the installed JDKs on my machine are installed below: 
The first 1.6.0.jdk is for Apple , and the other 3 are for Oracle.
source share