docs: note JDK 17 requirement for Gradle builds#2134
Conversation
Clarifies Android Studio Gradle JDK setting to avoid Java 11 resolution failures with baseline profile plugin dependencies. Fixes android#1137
There was a problem hiding this comment.
Code Review
This pull request updates the README.md to document that JDK 17 is required for Gradle. The feedback suggests using the GitHub-native alert syntax > [!NOTE] instead of > **Note:** to maintain consistency with the rest of the document.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| > **Note:** This project requires **JDK 17** for Gradle. In Android Studio, set | ||
| > **Settings → Build, Execution, Deployment → Build Tools → Gradle → Gradle JDK** to **17** | ||
| > (or **Embedded JDK** on recent Studio versions). Using JDK 11 will fail when resolving | ||
| > the baseline profile Gradle plugin and other dependencies that target Java 17. |
There was a problem hiding this comment.
For consistency with the rest of the document (e.g., lines 123, 147, and 189), use the GitHub-native alert syntax > [!NOTE] instead of > **Note:**.
| > **Note:** This project requires **JDK 17** for Gradle. In Android Studio, set | |
| > **Settings → Build, Execution, Deployment → Build Tools → Gradle → Gradle JDK** to **17** | |
| > (or **Embedded JDK** on recent Studio versions). Using JDK 11 will fail when resolving | |
| > the baseline profile Gradle plugin and other dependencies that target Java 17. | |
| > [!NOTE] | |
| > This project requires **JDK 17** for Gradle. In Android Studio, set | |
| > **Settings → Build, Execution, Deployment → Build Tools → Gradle → Gradle JDK** to **17** | |
| > (or **Embedded JDK** on recent Studio versions). Using JDK 11 will fail when resolving | |
| > the baseline profile Gradle plugin and other dependencies that target Java 17. |
Aligns with existing README alert blocks for consistency.
Summary
Documents that Gradle must run on JDK 17 for this project. Using JDK 11 causes resolution failures for the baseline profile Gradle plugin and other Java-17-targeted dependencies.
Closes #1137
Changes
Test plan