I was trying to get Android Studio to use Java 1.7 on Mac OS X (Mountain Lion)
I went to File > Project Structure... and then tried to add a JDK with
File > Project Structure...
In Mac, you can choose from within IDE interface by ⌘-Shift-a and find Switch IDE boot JDK...
Switch IDE boot JDK...