-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Android][Java]Bump Java version with 17 #40500
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
[Android][Java]Bump Java version with 17 #40500
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request updates the required Java version from 11 to 17 to support future Android Gradle Plugin versions. The changes are applied consistently across documentation and Docker build images. I've found one minor issue in the documentation where a reference to the old JDK version remains, which could cause confusion. After addressing this, the PR should be ready to merge.
@@ -100,19 +100,19 @@ architecture: | |||
|
|||
All Android projects utilize Gradle version 7.3.3 and JDK version 11.0. | |||
|
|||
For developer using java 11 in MacOS, the JAVA can be configured as follows via | |||
For developer using java 17 in MacOS, the JAVA can be configured as follows via |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.github/workflows/full-android.yaml
Outdated
@@ -33,7 +33,7 @@ jobs: | |||
name: Run | |||
|
|||
env: | |||
JAVA_HOME: /usr/lib/jvm/java-11-openjdk-amd64/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these yaml changes have to be taken out: only docker file changes should exist.
321a7c1
to
c851fd8
Compare
PR #40500: Size comparison from dc14833 to c851fd8 Full report (57 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #40500 +/- ##
=======================================
Coverage 51.00% 51.00%
=======================================
Files 1341 1341
Lines 98435 98435
Branches 12690 12690
=======================================
Hits 50202 50202
Misses 48233 48233 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Following https://developer.android.com/guide/practices/page-sizes#ndk-build_1, Starting November 1st, 2025, all new apps and updates to existing apps submitted to Google Play and targeting Android 15+ devices must support 16 KB page sizes on 64-bit devices.
We need upgrade AGP version with 8.5.1 that requires Java Development Kit (JDK) 17 to run Gradle
Related issues
Fixes #39871
Testing
local compilation
Readability checklist
N/A