简体   繁体   English

如何找出Android Studio的嵌入式JDK版本?

[英]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.我试图找出我的 Android Studio 使用的 JDK 版本。 I'm confused, because i have many versions in my /Program Files/Java catalog我很困惑,因为我的 /Program Files/Java 目录中有很多版本

在此处输入图片说明

Unfortunately the project structure doesn't have any JDK's version number.不幸的是,项目结构没有任何 JDK 的版本号。 在此处输入图片说明

The embedded JDK is included in the Android Studio install.嵌入式 JDK 包含在 Android Studio 安装中。 If you open the folder where you installed Android Studio, you'll see a jre folder in it:如果打开安装 Android Studio 的文件夹,您会在其中看到一个 jre 文件夹:

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

Inside the folder there is a file called THIRD_PARTY_README in which the second sentence says:文件夹内有一个名为THIRD_PARTY_README的文件,其中第二句话说:

%% 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我使用的是 Android Studio 3.0,其中嵌入式 JDK 版本为 8。要查找任何更高版本的版本,请转到[SDK_INSTALL_ROOT]/jre/并找到THIRD_PARTY_README


THIRD_PARTY_README is in my system defined as a file and not a txt file. THIRD_PARTY_README在我的系统中被定义为一个file而不是一个txt文件。 You can open it in Notepad, Notepad++ or any other text editor.您可以在 Notepad、Notepad++ 或任何其他文本编辑器中打开它。 The content is plain text.内容为纯文本。 You can also look for a file called release , which contains similar information about versions.您还可以查找名为release的文件,其中包含有关版本的类似信息。

In the installation directory of Android Studio there is a "release" file where you will find the detailed java information.在Android Studio的安装目录中有一个“release”文件,你可以在里面找到详细的java信息。

Contents of C:\\...\\Android Studio\\jre\\release : C:\\...\\Android Studio\\jre\\release 的内容:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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