我应该安装哪个 Java JDK 以使用 Android Studio [英] Which Java JDK should I install for the use of Android Studio

查看:62
本文介绍了我应该安装哪个 Java JDK 以使用 Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装Android Studio,看到建议也安装Java JDK.我不明白的是很多人都在推荐Java SE Development Kit 8,但最新的是13.为什么我要用8而不是13?谁能告诉我应该用于 Android Studio 的 JDK 的确切版本?

I want to install Android Studio and I saw that it is recommended to also install the Java JDK. The thing that I don't understand is that a lot of people are recommending the Java SE Development Kit 8 but the latest one is 13. Why would I use 8 instead of 13? Can anyone tell me the exact version of JDK that should be used for Android Studio?

提前致谢.

推荐答案

官方文档 说:

设置JDK版本

最新的 OpenJDK 副本与 Android Studio 2.2 及更高版本捆绑在一起,这是我们建议您用于 Android 项目的 JDK 版本.要使用捆绑的 JDK,请执行以下操作:

A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher, and this is the JDK version we recommend you use for your Android projects. To use the bundled JDK, do the following:

  1. 在 Android Studio 中打开您的项目,然后在菜单栏中选择文件 > 项目结构.
  2. 在 SDK 位置页面和 JDK 位置下,选中使用嵌入式 JDK 复选框.
  3. 点击确定.

因此,如果您不打算进行除 Android 应用程序以外的 Java 开发,则无需安装独立的 JDK.

So there is no need to install a standalone JDK if you are not planning to do Java Devs other than Android App.

这篇关于我应该安装哪个 Java JDK 以使用 Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆