- Developing Live Experience
- Add the Live Experience Framework to Your Android Studio Project
Add the Live Experience Framework to Your Android Studio Project
Add the Live Experience support framework to your Android Studio project.
-
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
-
-
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') }
-
-
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, andversionD
is 1.7.25 or greater. - Open your Android Studio project and from the File menu, select New > New Module.
- In New Module, select Import JAR/.AAR Package and click Next.
-
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.
- Click Finish.
- In the Project pane, right-click your application name and select Open Module Settings.
- Select the Dependencies tab, click + on the right side and then select Module dependency.
- Add your new module to the project dependencies and then click OK.
-
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.