简体   繁体   中英

Android Studio - OpenJDK 1.8 Vs Oracle JDK

Android studio used to complaint about using OpenJDK and was recommending Oracle JDK. However with latest Android Studio, that prompt has gone (probably due to the legal dispute between both the companies).

I today installed Oracle JDK 1.8.0.92 and Android Studio 2.1.1 seems to be running faster, a noticeably faster.

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.

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.

ALPN is basically used for http2 protocol when communicating with an http2 enabled Server. In android that can be used with a library like okhttp .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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