Skip to main content

Section 4: Linking Android Studio to JDK 17

This is the most important configuration step

Android Studio Ladybug ships with a bundled JDK that may be version 21. The FTC SDK requires JDK 17 for a stable build. You must manually redirect Android Studio.


Step 4.1 — Open Project Structure

With Android Studio open (no project loaded yet):

  • Windows/Linux: File → Project Structure → SDK Location
  • macOS: Android Studio → Settings → Build, Execution, Deployment → Build Tools → Gradle

Step 4.2 — Set the Gradle JDK

In the Gradle JDK dropdown, select "Add JDK."

Navigate to the JDK 17 path you noted in Step 2.2. Select the root folder of the JDK installation (the folder that contains the bin directory).

Once selected, the dropdown will show something like:

17 | Eclipse Temurin 17.0.x

Click "OK" or "Apply."


Critical Warning

If Android Studio shows a prompt reading "Upgrade Gradle Plugin?" or "Update Android Gradle Plugin?" at any point after opening the FTC project, click "Don't Remind Me Again" or dismiss it. Do not upgrade.

The FTC SDK's Gradle plugin version is pinned deliberately. Upgrading it breaks the Control Hub deployment pipeline and requires manual XML edits to recover.

Ready to move on?

Sign in with Google to save your progress with Telemark, or continue without saving.