Add Android SDK

This SDK aims at easily embedding Brid videos on your Android application. It's based on ExoPlayer and supports Android 5.0 (API level 21) and later.


The easiest way to get started using Brid Player is to add it as a gradle dependency. First, you need to add maven repository to the build.gradle file in the root of your project:

repositories {

Next, add a gradle compile dependency to the build.gradle file of your app module:

ext.bridPlayerVer = '1.2.1'//

dependencies {
  implementation 'tv.brid.sdk:bridsdk$bridPlayerVer'

In the app build.gradle file:
Add the dependencies. When prompted by Android Studio, update the dependency versions.
Configure _compileOptions _to support Java 8 language support.

android {
    defaultConfig {
        minSdkVersion 26 //for SDK version 1.2.1 
     // minSdkVersion 21 for SDK version before  1.2.1 

        multiDexEnabled true
    compileOptions {
        sourceCompatibility = '1.8' //minimum version -> 17 - recommended version
        targetCompatibility = '1.8' //minimum version -> 17 - recommended version

In the file, set android.useAndroidX _and _android.enableJetifier to true. These plugin files enable you to use androidx-namespaced libraries in your project.



If you are using a current version of Android Studio, the file should already contain these settings.

Sync Gradle

What’s Next