Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out the embedded JDK version of Android Studio?

Tags:

I'm trying to find out what JDK's version does my Android Studio use. I'm confused, because i have many versions in my /Program Files/Java catalog

enter image description here

Unfortunately the project structure doesn't have any JDK's version number. enter image description here

like image 606
Stanly T Avatar asked Dec 09 '17 12:12

Stanly T


People also ask

What version of JDK do I have Android Studio?

You can use cmd + ; for Mac or Ctrl + Alt + Shift + S for Windows/Linux to pull up the Project Structure dialog. In there, you can set the JDK location as well as the Android SDK location. To get your JDK location, run /usr/libexec/java_home -v 11 in terminal.

Can I use JDK 11 for Android Studio?

Up to Android Studio 3.5 beta 2 one could use JDK11 for compiling project by configuring it in Project Structure -> SDK Location -> JDK Location. This way Android Studio is run under bundled JDK8 but Gradle is using selected JDK11. Starting from Android Studio 3.5 beta 3 this setup is no longer supported.


1 Answers

The embedded JDK is included in the Android Studio install. If you open the folder where you installed Android Studio, you'll see a jre folder in it:

Image showing the JRE folder in the Android Studio installation folder

Inside the folder there is a file called THIRD_PARTY_README in which the second sentence says:

%% This notice is provided with respect to ASM Bytecode Manipulation  Framework v5.0.3, which may be included with JRE 8, and JDK 8, and  OpenJDK 8. 

I'm using Android Studio 3.0, in which the embedded JDK version is 8. To find the version in any later version though, go to [SDK_INSTALL_ROOT]/jre/ and find THIRD_PARTY_README


THIRD_PARTY_README is in my system defined as a file and not a txt file. You can open it in Notepad, Notepad++ or any other text editor. The content is plain text. You can also look for a file called release, which contains similar information about versions.

like image 172
Zoe stands with Ukraine Avatar answered Sep 28 '22 10:09

Zoe stands with Ukraine