简体   繁体   中英

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

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

在此处输入图片说明

Unfortunately the project structure doesn't have any JDK's version number. 在此处输入图片说明

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:

显示 Android Studio 安装文件夹中 JRE 文件夹的图像

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.

In the installation directory of Android Studio there is a "release" file where you will find the detailed java information.

Contents of C:\\...\\Android Studio\\jre\\release :

JAVA_VERSION="1.8.0_242"
OS_NAME="Windows"
OS_VERSION="5.2"
OS_ARCH="amd64"
SOURCE=""

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM