Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using JDK 7 Or Higher With Android Studio And Eclipse On Mac OSX

Both Android Studio and Eclipse are asking me to install JDK 6 even though JDK 8 is already installed. Several workarounds online told me change the java_home to point the JDK 8 installation location, done that such that both /usr/libexec/java_home and java -version commands refer to the JDK 8 installation but Android Studio and Eclipse still asking me to install JDK 6. Anyone solved this issue.

like image 580
rnxfod Avatar asked Apr 24 '14 09:04

rnxfod


People also ask

Is Java required for Android studio in Mac?

Android Studio will prompt you to download Java for OSX if you don't have it. After you install the JVM Android Studio will open up into a setup wizard.

Is JDK required for Android studio?

You must install Oracle JDK before installing Android Studio, so please don't start this step until you have completed Step 1 above. Download Android Studio from the following address: Android Studio Download Page.

How do I find my JDK path on Mac?

In macOS, the JDK installation path is /Library/Java/JavaVirtualMachines/jdk-10. jdk/Contents/Home . The root directory of the JDK software installation.


Video Answer


2 Answers

Android Studio is based on Intellij Idea 13. The solution here also applies. Just modifying Info.plist from 1.6* to 1.7* did it for me.

Btw, I've observed that at least Android Studio 0.5.5 uses massive amounts of memory. With Java 8 it gets over 2GB for very simple projects. With Java 7 it is still bad, but takes around 1.5GB.

like image 155
user1906 Avatar answered Oct 27 '22 00:10

user1906


Changing SDK Location also works for Android Studio Project

enter image description here

enter image description here

like image 33
vaichidrewar Avatar answered Oct 26 '22 22:10

vaichidrewar