This guide will walk you through setting up Android Studio for your FTC Robot Controller projects. It is essential to get your development environment properly installed and configured to begin writing and deploying Opmode code.
Windows Setup
To install Android Studio on a Windows machine:
- Visit the Android Studio Download page.
- Download the executable installer for Windows.
- Once downloaded, run the installer and ensure you check the options for “Android SDK” and “Android Virtual Device” if prompted.
- Follow the setup wizard, accepting the default locations.
- Clone or download your desired FTC SDK repository and open the folder from the Android Studio splash screen.
- The IDE will take some time to fetch Gradle dependencies. Once the build finishes and syncs, you’re ready to start programming.
Mac Setup
To install Android Studio on a macOS machine:
- Visit the Android Studio Download page.
- Choose the download button for your processor type (Intel or Apple Silicon).
- Once downloaded, open the
.dmgfile and drag the Android Studio icon into the Applications folder. - Open the application. On first launch, Android Studio will present a Setup Wizard. Like on Windows, proceed with standard choices, letting it download the necessary SDK platforms.
- Open your cloned FTC SDK directory via the Welcome window (
Open...). - After establishing the project structure and finishing gradle indexing, your setup is complete.
Ensure that you have set up ADB (Android Debug Bridge) or allowed sufficient permissions for your OS to detect your Rev Control Hub over Wi-Fi or USB!