0% found this document useful (0 votes)
991 views

Android - I Can't Set JDK 1.8 in AndroidStudio - Stack Overflow

The document is a discussion thread from Stack Overflow about setting the JDK to version 1.8 in Android Studio. A user was unable to set the JDK path to 1.8, with Android Studio reverting to 1.7 instead. Suggestions included updating the PATH environment variable, using a newer version of Android Studio with Java 8 support, and uninstalling JDK 1.7 to force the selection of JDK 1.8. The issue was ultimately resolved by having the user delete the Java 1.7 folder, allowing Android Studio to select the JDK path.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
991 views

Android - I Can't Set JDK 1.8 in AndroidStudio - Stack Overflow

The document is a discussion thread from Stack Overflow about setting the JDK to version 1.8 in Android Studio. A user was unable to set the JDK path to 1.8, with Android Studio reverting to 1.7 instead. Suggestions included updating the PATH environment variable, using a newer version of Android Studio with Java 8 support, and uninstalling JDK 1.7 to force the selection of JDK 1.8. The issue was ultimately resolved by having the user delete the Java 1.7 folder, allowing Android Studio to select the JDK path.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

android - i can't set JDK 1.8 in AndroidStudio - Stack Overflow http://stackoverflow.com/questions/39077458/i-cant-set-jdk-1-8-in-and...

sign up log in tour help

Dismiss

Announcing Stack Overflow Documentation


We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

i can't set JDK 1.8 in AndroidStudio

I have downloaded and installed jdk 1.8, but when i try to set path to jdk 1.8 in ProjectStructure -> JDK Location, AndroidStudio ignored it, so
after set path

click OK and reopen window "ProjectStructure" i see jdk 1.7 again

1 de 3 24/08/2016 23:22
android - i can't set JDK 1.8 in AndroidStudio - Stack Overflow http://stackoverflow.com/questions/39077458/i-cant-set-jdk-1-8-in-and...

android android-studio java-8

asked 2 days ago


Werder
187 2 15

Did you try to resolve the error shown in the bottom? Maybe it doesn't accept new settings if you do not
change this? – Bernhard 2 days ago

@Bernhard, No, this warning is useless, AS worked fine before i update buildTools to 24.0.1 – Werder 2
days ago

5 Answers

I think you need to update your path variable and add your jdk location to it . Studio must be
automatically getting path from your environment variable and replacing your path .

answered 2 days ago


Devansh Yadav
76 11

The JDK 1.8 does not seem to be fully supported by Android Studio because the Android
platform does not support Java 8 as it is currently.

You can see this link for more information. Is JDK 1.8 fully supported by Android Studio?

answered 2 days ago


Miro
49 4

2 de 3 24/08/2016 23:22
android - i can't set JDK 1.8 in AndroidStudio - Stack Overflow http://stackoverflow.com/questions/39077458/i-cant-set-jdk-1-8-in-and...

No, i use AndroidStudio 2.1.3, and i have error: Error:Buildtools 24.0.1 requires Java 1.8 or above. Current
JDK version is 1.7. – Werder 2 days ago

There might be an other issue then. Buildtools 24.0.1 should not require Java 8. Looks like preview version
of Android N has support for Java 8 developer.android.com/preview/j8-jack.html Could you add your gradle
files for debugging reference? – Miro 2 days ago

use Android Studio 2.2 preview 7 version this only support


java 8

Then you can use java 8 features :)

answered 2 days ago


Nitesh Pareek
295 1 8

I deleted folder with java 1.7, and AndroidStudio open me dialog for specifing jdk-path, whehe i
set it. Thank everybody for answering!

answered 2 days ago


Werder
187 2 15

Uninstall Java JDK7 and install JDK8, or set JDK8 as default Java VM in
your OS.

answered 13 hours ago


AndroidDev
1

3 de 3 24/08/2016 23:22

You might also like