Add the Live Experience Framework to Your Android Studio Project

Add the Live Experience support framework to your Android Studio project.

  1. Extract the following files from the Android SDK ZIP file and add them to your project libs directory:
    • oracle.wsc.feature.clientsdk.android-7.2.1.1-SNAPSHOT.jar

    • peerconnection_android-66.0.3359.117-b20aef0d47bf3924adfc7bfbee707f6f137670fb.jar

    • tyrus-standalone-client-1.13.jar

    • oracle.live.api-release.aar or oracle.live.api-debug.aar

  2. Update your project dependencies to include the extracted files in the libs directory. Add one of the following blocks of code to your build.gradle file.
    • dependencies {
       implementation fileTree(dir: 'libs', include: '*.jar')
       implementation fileTree(dir: 'libs', include: '*.aar')
      }
    • dependencies {
       implementation files('libs/oracle.wsc.feature.clientsdk.android-7.2.1.1-SNAPSHOT.jar')
       implementation files('libs/peerconnection_android-66.0.3359.117-b20aef0d47bf3924adfc7bfbee707f6f137670fb.jar')
       implementation files('libs/tyrus-standalone-client-1.13.jar') 
       implementation files('libs/oracle.live.api-release.aar')
      }
  3. Add third-party library dependencies to your project. Add the following block of code to your build.gradle file.
    dependencies {
     implementation 'androidx.appcompat:appcompat:versionA'
     implementation 'com.google.android.gms:play-services-location:versionB'
     implementation 'org.slf4j:slf4j-log4j12:versionD'
    }

    Where versionA is 1.0.0-beta01 or greater, versionB is 17.0.0 or greater, versionC is version 74.0.3729.108 or greater, and versionD is 1.7.25 or greater.

  4. Open your Android Studio project and from the File menu, select New > New Module.
  5. In New Module, select Import JAR/.AAR Package and click Next.
  6. Navigate to the location of the AAR file, and choose either the debug or release version depending on your requirements.
    Optionally, enter a different name in the Subproject name edit box if you like.
  7. Click Finish.
  8. In the Project pane, right-click your application name and select Open Module Settings.
  9. Select the Dependencies tab, click + on the right side and then select Module dependency.
  10. Add your new module to the project dependencies and then click OK.
  11. Add the following Android permissions to AndroidManifest.xml:
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />

What to do next

Next, Import the Mobile Component Framework into Your Android Application.