Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Android Studio with JRE 1.8 or later version

Tags:

java

android

I am facing issue for Android N layout XML preview. it is showing following message :

"Android N requires the IDE to be running with Java 1.8 or later"

also i install JAVA 1.8 in my OS.

also change the project JDK location with Java 1.8.

but when i see help->about of android studio it is show always 1.7.

how can i change it.?

here is the image when help->about JRE:1.7

like image 757
Prashant Jajal Avatar asked Apr 15 '16 05:04

Prashant Jajal


1 Answers

As Krishna Meena is mentioning you should change the SDK/JDK Location settings found from within:
File -> Project Structure... then SDK Location and now press on the link Gradle Settings...

enter image description here

Then choose your Gradle JDK to use...

enter image description here

like image 112
Ola Ström Avatar answered Sep 28 '22 02:09

Ola Ström