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

查看:259
本文介绍了我应该安装哪个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?

谢谢.

推荐答案

官方doc 说:

设置JDK版本

Android Studio 2.2及更高版本随附了最新的OpenJDK副本,这是我们建议您将其用于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. 单击确定".
  1. Open your project in Android Studio and select File > Project Structure in the menu bar.
  2. In the SDK Location page and under JDK location, check the Use embedded JDK checkbox.
  3. Click OK.

因此,如果您除了Android App之外不打算进行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天全站免登陆