---
title: Manually install the video agent using AAR files
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/android/install-manually-using-aar-files
---

This page provides an overview of the installation steps when using AAR files to manually install the Streaming Video & Ads agent. For the complete installation with code examples, use the [guided install](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/android/get-started-with-android).

1.  Clone the [video-agent-android](https://github.com/newrelic/video-agent-android) repository.
2.  Open it with Android Studio.
3.  Go to **View > Tool Windows > Gradle** to open the Gradle tool window.
4.  In the Gradle tool window, unfold **NRVideoProject > Tasks > build** and double-click **assemble**. This will build the project and generate the AAR library files inside each module's folder **build > outputs > aar**.
5.  In your project, go to **File > New > New Module**, import `.JAR/.AAR` package and click **Next**.
6.  Select the AAR files you generated in the previous step and click **Finish**.
7.  Repeat steps 5 and 6 for each AAR file you need:
    -   **NewRelicVideoCore.aar** (Required): Core video agent functionality
    -   **NRExoPlayerTracker.aar** (Required): ExoPlayer tracking
    -   **NRIMATracker.aar** (Optional): Ad tracking with IMA SDK
8.  In your app module's `build.gradle` file, add the following dependencies:
    ````groovy
    dependencies {
      ...
      implementation project(":NewRelicVideoCore")   // Required: Core video agent
      implementation project(":NRExoPlayerTracker")  // Required: ExoPlayer tracking
      implementation project(':NRIMATracker')        // Optional: Ad tracking with IMA
    }
    ```

    Note: Only include `NRIMATracker` if you need ad tracking functionality.

    ````
9.  Sync your project with Gradle files by clicking **Sync Now** in the notification bar, or go to **File > Sync Project with Gradle Files**.

### Initialize the video agent

In your application's `onCreate()` method or activity, initialize the New Relic video agent. For detailed code examples and implementation instructions, refer to the [guided install](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/android/get-started-with-android).

### Set up video player tracking

Configure the tracker based on your needs:

-   **ExoPlayer tracker only**: Set up ExoPlayer tracking for video playback monitoring
-   **ExoPlayer and IMA trackers**: Set up both ExoPlayer and IMA tracking for video playback and ad tracking

    ![A gif depicting how to install the video agent using jitpack](https://docs.newrelic.com/images/install-automatically-using-jitpack.gif "Install automatically using jitpack")

    For complete implementation code examples, see the [guided install](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/android/get-started-with-android).

1.  Build and deploy your application to see the video tracking data in New Relic.

## What's next?

-   [View your data](https://docs.newrelic.com/docs/streaming-video-&-ads/view-data-in-newrelic/streaming-video-&-ads-features): Learn about the different views available in New Relic to monitor your streaming video and ads
-   [Compatibility requirements](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/compatibility-requirements): Check supported platforms and versions
-   [Update the agent](https://docs.newrelic.com/docs/streaming-video-&-ads/update-the-media-agent): Keep your agent up to date
