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
pull/2134/head
Kanav Wadhawan 3 months ago
parent 7d45eae4f8
commit 7e619c4245

@ -32,6 +32,11 @@ 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
> **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`.
![image](https://user-images.githubusercontent.com/873212/210559920-ef4a40c5-c8e0-478b-bb00-4879a8cf184a.png)

Loading…
Cancel
Save