From 7e619c424592738700980e2de8fb280ae3e28c10 Mon Sep 17 00:00:00 2001 From: Kanav Wadhawan Date: Sun, 21 Jun 2026 21:52:39 +0100 Subject: [PATCH 1/2] docs: note JDK 17 requirement for Gradle builds Clarifies Android Studio Gradle JDK setting to avoid Java 11 resolution failures with baseline profile plugin dependencies. Fixes #1137 --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f7613a0d4..e9107889b1 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,12 @@ in, and be notified when new content is published which matches interests they a # Development Environment -**Now in Android** uses the Gradle build system and can be imported directly into Android Studio (make sure you are using the latest stable version available [here](https://developer.android.com/studio)). +**Now in Android** uses the Gradle build system and can be imported directly into Android Studio (make sure you are using the latest stable version available [here](https://developer.android.com/studio)). + +> **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. Change the run configuration to `app`. From e700aff3c740ad020994c175b1603e2f712d7183 Mon Sep 17 00:00:00 2001 From: Kanav Wadhawan Date: Sun, 21 Jun 2026 22:13:15 +0100 Subject: [PATCH 2/2] docs: use GitHub NOTE alert syntax for JDK 17 callout Aligns with existing README alert blocks for consistency. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e9107889b1..a9344249e8 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ in, and be notified when new content is published which matches interests they a **Now in Android** uses the Gradle build system and can be imported directly into Android Studio (make sure you are using the latest stable version available [here](https://developer.android.com/studio)). -> **Note:** This project requires **JDK 17** for Gradle. In Android Studio, set +> [!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.