5

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

mesibo
  • 3,970
  • 6
  • 25
  • 43
  • 1
    few QA's https://jaxenter.com/java-8-will-be-introduced-to-android-by-changing-to-openjdk-123810.html – Bharatesh May 16 '16 at 04:47
  • I assume that the source of the OpenJDK warning is not AndroidStudio but the underlaying IntelliJ IDE: http://stackoverflow.com/questions/9673163/openjdk-or-sun-java-for-intellij-idea – Robert May 25 '16 at 17:03

1 Answers1

3

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.

Ishita Sinha
  • 2,168
  • 4
  • 25
  • 38
Rahul
  • 408
  • 5
  • 13