MacOSX Yosemite doesn't pre-install java, so when you installed Android Studio, you will get error:
mac no java runtime present
So you have to download java JRE (or SDK) from Oracle Website. But this is java 1.8 and Android Studio require java 1.6.
To fix it, you can edit: