简体   繁体   English

Android Studio - OpenJDK 1.8升Oracle JDK

[英]Android Studio - OpenJDK 1.8 Vs Oracle JDK

Android studio used to complaint about using OpenJDK and was recommending Oracle JDK. Android工作室曾经抱怨过使用OpenJDK并推荐使用Oracle JDK。 However with latest Android Studio, that prompt has gone (probably due to the legal dispute between both the companies). 然而,对于最新的Android Studio,该提示已经消失(可能是由于两家公司之间的法律纠纷)。

I today installed Oracle JDK 1.8.0.92 and Android Studio 2.1.1 seems to be running faster, a noticeably faster. 我今天安装了Oracle JDK 1.8.0.92,Android Studio 2.1.1似乎运行得更快,速度明显更快。

Any idea what's the current status of Android studio with respect to Java 1.8 and also with respect to OpenJDK vs Oracle JDK. 知道Android Studio与Java 1.8相关的当前状态,以及OpenJDK与Oracle JDK的关系。

Thanks 谢谢

There is one main advantage of openJDK, and that is you can add ALPN jar into bootclasspath which is currently not supported by OrcaleJDK. openJDK有一个主要优点,那就是你可以将ALPN jar添加到当前OrcaleJDK不支持的bootclasspath中。

ALPN is basically used for http2 protocol when communicating with an http2 enabled Server. 在与启用http2的服务器通信时,ALPN基本上用于http2协议。 In android that can be used with a library like okhttp . 在android中可以使用像okhttp这样的库。

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

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