Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for JDK 11 #1277

Closed
adityatyagijtg opened this issue Jul 14, 2021 · 2 comments
Closed

Support for JDK 11 #1277

adityatyagijtg opened this issue Jul 14, 2021 · 2 comments

Comments

@adityatyagijtg
Copy link

According to this and this the cordova-android supports JDK versions which is supported by the latest stable Android Studio release:

As per the investigation, the latest Android Studio v4.2.2 supports OpenJDK 11

C:\Program Files\Android\Android Studio\jre\bin>java -version
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
OpenJDK 64-Bit Server VM (build 11.0.8+10-b944.6842174, mixed mode)

The upcoming release of Android Studio (4.3.x) (Android Studio Arctic Fox) will officially update gradle plugin as well as make JDK 11 as the minimum requirement. The version is currently in BETA.

Java 11 requirement
With AGP 7.0.0-alpha01 we are changing the minimum required Java programming language version to Java 11.
We are announcing this early in the Canary schedule and many months ahead of the stable release to allow developers time to get ready.

PROBLEM

But the cordova (10.x.x) latest official guide still explicitly mentions JDK 1.8

QUESTION

  1. Can we update the JDK version now?
  2. Will the cordova-android (9.x.x) and the upcoming (10.x.x) be compatible with JDK 11?
@erisu
Copy link
Member

erisu commented Jul 14, 2021

Master branch already removed the JDK 1.8 restriction. But as regards to compiling JDK 11 that is not supported until APG 7 is officially released. AGP 7 is not going to be out by the time Cordova-Android next major is out.

@erisu erisu closed this as completed Jul 14, 2021
@adityatyagijtg
Copy link
Author

Thank you for the prompt reply @erisu
Highly appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants