Android - I Can't Set JDK 1.8 in AndroidStudio - Stack Overflow
Android - I Can't Set JDK 1.8 in AndroidStudio - Stack Overflow
Dismiss
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
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...
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 .
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?
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
I deleted folder with java 1.7, and AndroidStudio open me dialog for specifing jdk-path, whehe i
set it. Thank everybody for answering!
Uninstall Java JDK7 and install JDK8, or set JDK8 as default Java VM in
your OS.
3 de 3 24/08/2016 23:22