Skip to content

[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

Merged

Conversation

yunhanw-google
Copy link
Contributor

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

@yunhanw-google yunhanw-google requested a review from a team as a code owner August 8, 2025 16:25
@github-actions github-actions bot added documentation Improvements or additions to documentation integrations github workflows docker labels Aug 8, 2025
@pullapprove pullapprove bot requested a review from andy31415 August 8, 2025 16:26
@pullapprove pullapprove bot added review - pending and removed documentation Improvements or additions to documentation integrations github workflows docker labels Aug 8, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While this section is correctly updated to reference Java 17, the preceding sentence on line 101 still mentions that projects use JDK version 11.0. To avoid confusion for developers, please update line 101 to reflect the new requirement of JDK 17.

@@ -33,7 +33,7 @@ jobs:
name: Run

env:
JAVA_HOME: /usr/lib/jvm/java-11-openjdk-amd64/
Copy link
Contributor

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.

@andy31415 andy31415 added the sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews. label Aug 8, 2025
@andy31415 andy31415 merged commit 188dec4 into project-chip:master Aug 8, 2025
67 of 69 checks passed
Copy link

github-actions bot commented Aug 8, 2025

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)
platform target config section dc14833 c851fd8 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1104636 1104636 0 0.0
RAM 179066 179066 0 0.0
bl702 lighting-app bl702+eth FLASH 657270 657270 0 0.0
RAM 134929 134929 0 0.0
bl702+wifi FLASH 835062 835062 0 0.0
RAM 124541 124541 0 0.0
bl706+mfd+rpc+littlefs FLASH 1066976 1066976 0 0.0
RAM 117349 117349 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 896158 896158 0 0.0
RAM 105652 105652 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 979872 979872 0 0.0
RAM 109828 109828 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 766632 766632 0 0.0
RAM 103328 103328 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 778228 778228 0 0.0
RAM 108496 108496 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 723832 723832 0 0.0
RAM 96892 96892 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 708188 708188 0 0.0
RAM 97100 97100 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 550586 550586 0 0.0
RAM 205080 205080 0 0.0
lock CC3235SF_LAUNCHXL FLASH 582942 582942 0 0.0
RAM 205296 205296 0 0.0
efr32 lock-app BRD4187C FLASH 957920 957920 0 0.0
RAM 126512 126512 0 0.0
BRD4338a FLASH 752336 752336 0 0.0
RAM 251856 251856 0 0.0
window-app BRD4187C FLASH 1050220 1050220 0 0.0
RAM 122708 122708 0 0.0
esp32 all-clusters-app c3devkit DRAM 102288 102288 0 0.0
FLASH 1750406 1750406 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 121156 121156 0 0.0
FLASH 1698870 1698870 0 0.0
IRAM 117051 117051 0 0.0
linux air-purifier-app debug unknown 4864 4864 0 0.0
FLASH 2588242 2588242 0 0.0
RAM 116664 116664 0 0.0
all-clusters-app debug unknown 5688 5688 0 0.0
FLASH 5977460 5977460 0 0.0
RAM 534696 534696 0 0.0
all-clusters-minimal-app debug unknown 5536 5536 0 0.0
FLASH 5203746 5203746 0 0.0
RAM 227944 227944 0 0.0
bridge-app debug unknown 5568 5568 0 0.0
FLASH 4590144 4590144 0 0.0
RAM 208304 208304 0 0.0
camera-app debug unknown 9008 9008 0 0.0
FLASH 6883307 6883307 0 0.0
RAM 233128 233128 0 0.0
camera-controller debug unknown 9216 9216 0 0.0
FLASH 13644715 13644715 0 0.0
RAM 668960 668960 0 0.0
chip-tool debug unknown 6264 6264 0 0.0
FLASH 13694091 13694091 0 0.0
RAM 655880 655880 0 0.0
chip-tool-ipv6only arm64 unknown 40736 40736 0 0.0
FLASH 12721239 12721239 0 0.0
RAM 690840 690840 0 0.0
closure-app debug unknown 5536 5536 0 0.0
FLASH 4571918 4571918 0 0.0
RAM 200216 200216 0 0.0
fabric-admin debug unknown 5944 5944 0 0.0
FLASH 12038864 12038864 0 0.0
RAM 654888 654888 0 0.0
fabric-bridge-app debug unknown 4816 4816 0 0.0
FLASH 4389056 4389056 0 0.0
RAM 193968 193968 0 0.0
fabric-sync debug unknown 5056 5056 0 0.0
FLASH 5474917 5474917 0 0.0
RAM 493760 493760 0 0.0
lighting-app debug+rpc+ui unknown 6280 6280 0 0.0
FLASH 5476193 5476193 0 0.0
RAM 209616 209616 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4618858 4618858 0 0.0
RAM 196760 196760 0 0.0
ota-provider-app debug unknown 4856 4856 0 0.0
FLASH 4247732 4247732 0 0.0
RAM 185424 185424 0 0.0
ota-requestor-app debug unknown 4736 4736 0 0.0
FLASH 4310944 4310944 0 0.0
RAM 188248 188248 0 0.0
shell debug unknown 4312 4312 0 0.0
FLASH 2932179 2932179 0 0.0
RAM 148504 148504 0 0.0
thermostat-no-ble arm64 unknown 9976 9976 0 0.0
FLASH 4226495 4226495 0 0.0
RAM 226464 226464 0 0.0
tv-app debug unknown 5824 5824 0 0.0
FLASH 5803237 5803237 0 0.0
RAM 618104 618104 0 0.0
tv-casting-app debug unknown 5352 5352 0 0.0
FLASH 11831541 11831541 0 0.0
RAM 772432 772432 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 909772 909772 0 0.0
RAM 152832 152832 0 0.0
nxp contact mcxw71+release FLASH 630440 630440 0 0.0
RAM 64084 64084 0 0.0
lock mcxw71+release FLASH 740632 740632 0 0.0
RAM 65168 65168 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1657828 1657828 0 0.0
RAM 211144 211144 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1579428 1579428 0 0.0
RAM 208416 208416 0 0.0
light cy8ckit_062s2_43012 FLASH 1450532 1450532 0 0.0
RAM 197144 197144 0 0.0
lock cy8ckit_062s2_43012 FLASH 1482868 1482868 0 0.0
RAM 224856 224856 0 0.0
qpg lighting-app qpg6200+debug FLASH 819296 819296 0 0.0
RAM 127608 127608 0 0.0
lock-app qpg6200+debug FLASH 756628 756628 0 0.0
RAM 118560 118560 0 0.0
stm32 light STM32WB5MM-DK FLASH 466276 466276 0 0.0
RAM 141336 141336 0 0.0
telink bridge-app tl7218x FLASH 703758 703758 0 0.0
RAM 93552 93552 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795550 795550 0 0.0
RAM 43968 43968 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 783956 783956 0 0.0
RAM 100856 100856 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 711550 711550 0 0.0
RAM 54188 54188 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748144 748144 0 0.0
RAM 77344 77344 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 724870 724870 0 0.0
RAM 36944 36944 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604898 604898 0 0.0
RAM 112512 112512 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819560 819564 4 0.0
RAM 99108 99108 0 0.0
tizen all-clusters-app arm unknown 5184 5184 0 0.0
FLASH 1767192 1767192 0 0.0
RAM 92108 92108 0 0.0
chip-tool-ubsan arm unknown 20772 20772 0 0.0
FLASH 21106682 21106682 0 0.0
RAM 9181152 9181152 0 0.0

Copy link

codecov bot commented Aug 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.00%. Comparing base (dc14833) to head (c851fd8).
⚠️ Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

soares-sergio pushed a commit to soares-sergio/connectedhomeip that referenced this pull request Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker integrations review - pending sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Platform] [Android] .so jni libraries are not 16kb load section aligned
3 participants