简体   繁体   English

我应该使用哪个JDK来编译我的Android应用程序以及哪个版本?

[英]Which JDK should I use to compile my Android app with and which version?

My question could break into two section: 我的问题可以分为两部分:

  1. I want to know if there is any downside to using OpenJDK instead of Oracle JDK, 我想知道使用OpenJDK代替Oracle JDK是否有不利之处,
    for example, if I compile my Android app with Oracle, would it be faster? 例如,如果我使用Oracle编译Android应用程序,会更快吗? If it would, is there any benchmark? 如果可以,是否有基准? And in general what are the advantages? 总的来说,优点是什么?
  2. Should I compile my app with OpenJDK/OracleJDK version 7 over 5? 我应该使用OpenJDK / OracleJDK 7 over 5编译我的应用程序吗? What are the differences? 有什么区别?

Thank you in advance. 先感谢您。

1- I want to know is there any downside for using OpenJDK instead of Oracle JDK, for example, if I compile my andorid app with Oracle, would it be faster? 1-我想知道使用OpenJDK代替Oracle JDK有什么缺点,例如,如果我用Oracle编译Andorid应用程序,会更快吗?

Well AFAIK in Java, if you seek performance, go for OpenJDK, while those who want Reliability, favor Oracle's JDK. Java的AFAIK很好,如果您追求性能,那就选择OpenJDK,而那些想要可靠性的人则更喜欢Oracle的JDK。

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

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