Skip to content

Importing Into Your Project

Johan Vandegriff edited this page May 28, 2022 · 13 revisions

Importing the library into the ftc-app is extremely simple!

  1. Download the latest release EVLib-release.aar. You can also click here.

  2. Copy the downloaded library to the (your project root)/libs/ directory.

  3. Now you need to tell gradle that EVLib is a dependency. In android studio, edit the TeamCode/build.gradle file and add the following lines:

dependencies {
    compile(name: 'EVLib-release', ext: 'aar')
}

Attaching the source (Optional):

  1. Download the repository as a zip file and extract it.

  2. When a yellow bar appears at the top of the screen:

Decompiled .class file

  1. Click on the blue link that says "Choose Sources..." and a window will pop up.

attach sources window

  1. Choose the "EVLib-master/EVLib/src/main/java directory" from the file you downloaded.

You are done! You can look at the Sample Code to get you started on using the library.