title: How do i set in android studio the Set JDK_HOME and JAVA_HOME environment variables?
body: <p>I'm getting error in the DESIGN:</p>
  
  <p>Android N requires the IDE to be running with java 1.8 or later</p>
  
  <p>I went to the Project Structure > JDK location changed it from 1.7 to the latest I just downloaded 1.8 changed it to: C:\Program Files\Java\jdk1.8.0_91
  But still getting this message.</p>
  
  <p>I tried to google found someone else solution also to Set JDK_HOME and JAVA_HOME environment variables. But I can't find where to set this variables.</p>
  
  <p>This is the solution but not sure how to do it:</p>
  
  <p><a href="https://stackoverflow.com/questions/35928580/android-n-requires-the-ide-to-be-running-with-java-1-8-or-later">solution</a></p>