Can't install Java 7 (installer refuses).
Can install Java 8.
But then starting Android Studio, it says it needs to install the legacy JDK 6, which is not going to work for me because our projects are already 1.7.
Can't install Java 7 (installer refuses).
Can install Java 8.
But then starting Android Studio, it says it needs to install the legacy JDK 6, which is not going to work for me because our projects are already 1.7.
Open a terminal and run
If it shows
javac 1.8.*
, thenotherwise (
javac 1.7.*
), thenIf there is no display at all, you should install Java SDK.
I've tried several solutions, downloading several sdk but Android Studio didn't recognize them as valid sdks.
Finally, the workaround that worked for me was:
Got this all to work:
Found a thread that Oracle is going to update 1.7 so that the installer will not balk at 10.10 but that was not out yet.
This ended up working. Clearly the app itself is using 8 since my language level in my project is set to 1.7 and the legacy JDK is 1.6.
for me the solution was:
XML Info.plist should look like this
This Also works on Android Studio 0.9.9
We now have an official page describing what to do: http://tools.android.com/tech-docs/configuration/osx-jdk
Please, please don't edit Info.plist; that has many downsides (including broken patches and application signatures breaking etc). As of Android Studio 1.0 we have a different way of setting the JDK to be used by the IDE.
If you click "more..." on error dialog it will lead to Java for OS X 2014-001. Just download and install it.