MacOS X 10.7.5
Android Studio 1.0 build AI-135.1641136 from 02/16/15

After installing, I launch the app for the first time, and I get a bare dialog "Unable to find a valid JVM".
However the command line says:

$ which java
/usr/bin/java
$ java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
$ javac -version
javac 1.8.0_31


I.e. there is a valid JVM & JDK.

And in fact, after finding and reading http://tools.android.com/tech-docs/configuration/osx-jdk : 

$ export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.1.8.0_31.jdk
$ ls $STUDIO_JDK 
Contents
$ open /Applications/Android\ Studio.app

And it works fine, so yay.


However, I think we can really do better. As a first-time user, my initial experience was a bit jarring. Rather than the bare dialog "Unable to find JVM", how about, at the very least, a pointer to the page I found myself?

Better, obviously, would be to find the JVM. Mine seems to be in a pretty common place.

Source : Google Code