FTControl Setup Guide
This guide helps you integrate ftcontrol
into your FTC Robot Controller.
Clone FTC Robot Controller
Start by cloning the official FTC repository:
git clone https://github.com/FIRST-Tech-Challenge/FtcRobotController
[Optional] Enable Kotlin Support
You only need this if you want to use Kotlin instead of Java.
Edit TeamCode/build.gradle:
//ADD THIS
apply plugin: 'org.jetbrains.kotlin.android'
//
android {
namespace = 'org.firstinspires.ftc.teamcode'
//ADD THIS
kotlinOptions {
jvmTarget = '1.8'
}
compileSdk 35
defaultConfig {
minSdk 24
}
//
packagingOptions {
jniLibs.useLegacyPackaging true
}
}
And in the root build.gradle:
buildscript {
...
dependencies {
//ADD THIS
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0"
//
}
}
Add FTControl to Your Project
[if you aren't using Kotlin] Edit TeamCode/build.gradle:
android {
namespace = 'org.firstinspires.ftc.teamcode'
//ADD THIS
compileSdk 35
defaultConfig {
minSdk 24
}
//
packagingOptions {
jniLibs.useLegacyPackaging true
}
}
In your root build.gradle or settings.gradle, add this Maven repository:
allprojects {
repositories {
mavenCentral()
google()
maven {
url = "https://mymaven.bylazar.com/releases"
}
}
}
Then in your module’s build.gradle:
dependencies {
implementation "com.bylazar:ftcontrol:VERSION"
}
Make sure you have the sdk-35 isntalled. Go to Settings > SDK Manager and install the appropriate version.
Possible error: Failed to find Platform SDK with path: platforms;android-35
Before Updating: Check the Changelog
Before updating to the latest version of ftcontrol, it's essential to check the changelog for any breaking changes, bug fixes, or new features.
A library by Lazar from 19234 ByteForce.