使用Android Studio需要Java JDK吗? [英] Do I need Java JDK for using Android Studio?

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

问题描述

我正在学习Android Studio和youtube上的教程,例如:

I'm learning Android Studio and the tutorials on youtube like:

https://www.youtube.com/watch?v=QAbQgLGKd3Y&list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl

说我需要Java JDK。

say I need the Java JDK.

然而,当我在网站上阅读教程时:

Yet when I went through the tutorial at the website:

https://developer.android.com/training/basics/firstapp/creating-project .html

我能够设置和运行myfirstapp项目。

I was able to setup and run the myfirstapp project.

新的AS是否包含SDK,还是我需要更复杂的项目。

我想我可以直播视频教程直到我遇到了一个问题但我想知道在卸载Android Studio之前,安装JDK并重新安装Android Studio。

Does the new AS include the SDK or will I need it for more complicated projects.
I guess I can just run through the video tutorial until I encounter a problem but I'd like to know before I have to uninstall Android Studio, install the JDK and reinstall Android Studio.

似乎真的很痛苦。

推荐答案

Android Studio版本2.2和最新的嵌入式OpenJDK可以为初学者提供较低的入门门槛。

Android Studio version 2.2 and higher comes with the latest OpenJDK embedded in order to have a low barrier to entry for beginners.

但是,建议您自己安装JDK,然后才能独立于Android Studio更新它。

It is, however, recommended to have the JDK installed on your own as you are then able to update it independent of Android Studio.

如果您正在使用Android API< 24,然后你需要用Java 7编译项目或者做一些额外的步骤启用Java 8功能。 (注意:Java 8支持相对较新)。

If you are working with an Android API < 24, then you'll need to compile the project with Java 7 or do some extra steps to enable Java 8 features. (Note: Java 8 support is relatively new).

Android Studio 3.0及更高版本支持所有Java 7语言功能和Java 8语言功能的子集

Android Studio 3.0 and later supports all Java 7 language features and a subset of Java 8 language features

这篇关于使用Android Studio需要Java JDK吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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