To add the CONNECT Player to your application, you need to:

Update the build.gradle

In Project view, select app build.gradle.

  1. Add the following lines to the android block (if not already present):

        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
    GROOVY
  2. Create a buildScript block with a dependency set for the latest gradle plugin.

    buildscript {
      repositories {
         google()
         mavenCentral()
       }
      dependencies {
        classpath 'com.android.tools.build:gradle:7.0.4'
      }
    }
    GROOVY
  3. In the dependencies block, add the following implementations:

            implementation fileTree(dir: 'libs', include: ['*.aar'])
            implementation ("com.google.guava:guava:27.1-android") {
                  exclude group: 'com.google.code.findbugs', module: 'jsr305'
                  exclude group: 'org.checkerframework', module: 'checker-compat-qual'
                  exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
                  exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
                  exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations'
    			} 
    GROOVY
  4. On completion, sync the build.gradle.

Next step: Edit the MainActivity file.