## Step 1: Add the SDK to your Project

### Add a Link to the Player SDK repository

Add a link to our release repository to your application's `settings.gradle.kts` file. In addition to that, the Google Maven repository is required.

### Add the Dependency to the Project

Add the Bitmovin Player Android SDK as a dependency to your project as shown below, while replacing `{version-number}` with the desired SDK version number. The available SDK versions are listed in our [release notes](🔗).

## Step 2: Set up your Project

### Edit the manifest file

The Bitmovin Player license key and the necessary permissions have to be added to the manifest file. The license key should be added inside the `application` element.

Alternatively, you can specify the license key in the PlayerConfig:

The player requires the `INTERNET` permission. The following line should be added inside the `manifest` element.

## Step 3: Set up the Player

### Instantiate the Player (Quick Setup)

To get started quickly with the default Bitmovin Web UI, the PlayerView can be added to the layout:

Then you need to create the source:

Finally, get the player instance in the Activity and load the source into it:

_At the moment it is not possible to enable or configure Analytics with this variant._

### Instantiate the Player (Advanced Setup)

For more elaborate workflows, e.g. specific configurations, analytics or a custom UI, the player can also be instantiated explicitly:

For Java users the `PlayerFactory` might be more convenient:

This Player can then be attached to a PlayerView:

Alternatively, a custom UI can be implemented. See the [corresponding sample](🔗) for details.

Finally, a source is created and loaded into the player. The `SourceMetadata` are optional and can be used to provide more context in the analytics events.

Similar to before, Java users can use the `SourceFactory` to create a `Source`:

## Step 4: Configure your Player and Analytics License

### Allowlist Application ID

In order to use the player with analytics in your app, you have to allowlist the application ID (package name) of your app. This is a security mechanism and protects your license from being used elsewhere.

Allowlisting can be done in the [Dashboard](🔗) under **Player > Licenses** and **Analytics > Licenses**.

## Summary

In this tutorial you've learned how to add the Bitmovin Player Android SDK to your project, set up the player and analytics license, and how to configure and use the Player.

Next, you can

  • browse our [API reference](🔗).

  • download fully working [examples](🔗) and explore more features in our GitHub repository.

  • choose additional platforms to deploy on in our [Getting Started Hub](🔗) and try our no-code wizards.

  • get real-time insights into your Android Player via our [Analytics Dashboard](🔗).

  • see if some of the questions you might have are answered in our [Community](🔗) and ask your own!