简体   繁体   中英

Which JDK version do I need for Android development? (Command Line Tool)

Today I wanted to install on a new computer the Android SDK with the "Command Line Tool" from the official site. As I remember Android SDK only supports Java 8. Now I noticed Java 8 is dead since January (eol).

So what should I do, if I want to install the Android SDK without Android Studio and being a private person that doesn't own an Oracle (business) account? (which you need if you want to download eol jdk's)

Thank you in advance.

您可以从Oracle获得旧的JDK,但正如您指出的那样,只有许可证可以使用: JDK 8而且您始终可以使用OpenJDK: Open JDK(每个Java版本)

https://adoptopenjdk.net currently supports all distributions of JDK from version 8 onwards.
For example https://adoptopenjdk.net/releases.html#x64_win

Here's an example of how I was able to use JDK version 8 with sdkmanager and much more: https://travis-ci.com/mmcc007/screenshots/builds/109365628

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