---
title: Install manually using source code
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/android/install-manually-using-source-code
---

This page provides an overview of the installation steps when using source code 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.  In your Android project, go to **File > New > Import Module**.
3.  Enter the location of the library module directory and click **Finish**.
    > #### ⚠️ IMPORTANT
    >
    > Library module directory is located in the repo you just cloned. Example modules: `NewRelicVideoCore`, `NRExoPlayerTracker`, `NRIMATracker`.
4.  Repeat steps 2 and 3 with all the modules you want to include.
5.  In your app module's `build.gradle` file, add the following:
    ````groovy
    dependencies {
      ...
      implementation project(":NewRelicVideoCore")
      implementation project(":NRExoPlayerTracker")
      implementation project(':NRIMATracker')
    }
    ```

    ````
6.  Click **Continue**.

### Set up video player tracking

Select the agent type that matches your implementation:

-   **Video agent with ExoPlayer tracker only**: For video playback tracking
-   **Video agent with ExoPlayer and IMA trackers**: 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")

1.  Click **See your data** to deploy your updated code and see the data.

## 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
