Installation
How to import FTCLib into your Android Studio FTC Project
build.common.gradle
First, you need to add the mavenCentral
library repository to your build.gradle
file at the project root:
Next, minSdkVersion
to 24
and multiDexEnabled
to true
:
Next, change JavaVersion
to 8
:
Only If Using CV:
Remove all instances of "arm64-v8a"
build.gradle (TeamCode)
Add this dependency block for the base library:
OR
Add this dependency block for the vision library:
Install EasyOpenCV Dependency
Since FTCLib depends on EasyOpenCV for vision, and because EasyOpenCV depends on OpenCV-Repackaged, you will need to copy libOpenCvNative.so
from the /doc
folder of that repo into the FIRST
folder on the USB storage of the Robot Controller (i.e. connect the Robot Controller to your computer with a USB cable, put it into MTP mode, and drag 'n drop the file). For Control Hub, you simply have to put the file in the FIRST
folder. No settings need to be checked.
Sync Gradle and Finished!
Last updated