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
I deleted folder with java 1.7, and AndroidStudio open me dialog for specifing jdk-path, whehe i set it. Thank everybody for answering!
This seems to be a bug either in Android Studio 2.1.x or IntelliJ. Here is a workaround after you installed the new JDK and set it as JAVA_HOME
env variable:
%HOME%/.AndroidStudio2.1/config/options
(or which version you are using)jdk.table.xml
JAVA_HOME
should be set as default jdkReference: https://code.google.com/p/android/issues/detail?id=213239
See also: Android Studio JDK location changes back to 1.7 every time it is updated to 1.8 path
Uninstall Java JDK7 and install JDK8, or set JDK8 as default Java VM in your OS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With