如何JDK 7的支持终止影响Android开发JDK、Android

2023-09-06 22:38:44 作者:污味小鲜肉

甲骨文宣布他们停止了JRE 7的正式更新和 JDK 7 。

虽然我知道的,谷歌并没有说明JDK 8事情,我想推荐的版本是JDK 7的Andr​​oid开发。

是JDK 8 Android开发正式支持?

解决方案

谷歌Android的发展页< /一>,并从那里, pre必备页名单JDK7作为一个要求。

这已无关,与甲骨文的JRE自code Android开发过程中取得了被从未想过要在该JRE中运行 - 它应该变成的Dalvik字节code和Android下运行。

因此​​,甲骨文的JRE的安全问题是不是真的有问题。谷歌支持JDK7(insomuch因为它涉及到Android开发),这样的这是的你应该使用,待意图从谷歌一个明确的说法是什么。

Oracle has announced that they stop the official updates for JRE 7 and JDK 7.

如何下载安装jdk和jre 以及配置JDK全局环境变量和安装Android studio

As much as I know, Google doesn't say anything about JDK 8, I guess the recommended version is JDK 7 for Android development.

Is JDK 8 officially supported for Android development?

解决方案

The Google Android development page and, from there, the pre-requisites page list JDK7 as a requirement.

This has nothing to do with Oracle's JRE since the code made during Android development is never meant to run on that JRE - it's supposed to be turned into Dalvik bytecode and run under Android.

So the security concerns of Oracle's JRE are not really at issue here. Google supports JDK7 (insomuch as it pertains to Android development) so that's what you should be using, pending a clear statement of intent from Google.