Section 4: Checking Android Studio's Gradle JDK
The current FTC project can build with Android Studio's bundled JDK. Do not force JDK 17 or change the project's Java compatibility settings unless the current official README or your team's repository requires it.
Step 4.1: Find the Gradle JDK
After opening the FTC project, go to:
Settings → Build, Execution, Deployment → Build Tools → Gradle
Step 4.2: Check the Selection
Start with the bundled or project-recommended JDK shown in the dropdown. Run a Gradle sync before changing it. If the build succeeds, the selection is correct.
If Gradle reports an unsupported Java runtime, compare your project with the current official FtcRobotController release and your team's setup notes. Select a different installed JDK only when those sources specify one.
Keep Team Code Compatible
The official SDK currently uses:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Do not raise those values just because the Gradle runtime uses a newer JDK. The Java 8 language target keeps team code compatible with OnBot Java.
Do not accept automatic Android Gradle Plugin or Gradle upgrades in an FTC competition project without checking the current SDK release notes. Upgrade the FTC SDK as a complete project instead of changing one build component by itself.
Ready to move on?
Sign in with Google to save your progress with Telemark, or continue without saving.