'Which Java distribution is best for Android?

There was time I used AdoptOpenJDK or the embeded Java which comes bundled with Android Studio, but have not noticed difference. Looking at the preferences for gradle there is a lot of other distributions. On the internet I have read that some of them have patches for security and performance.

java distributions offered by Android Studio

so which one is best for Android? and why AdoptOpenJDK is missing from the list?



Solution 1:[1]

They are simply maintained by their publishers respectively and they are all derived from OpenJDK which developed by Oracle.

I would recommend OpenJDK since it's the base for all of the other "flavours" and all of them gets the same bug fixes & security patches again deriving from OpenJDK.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vivus