This topic describes the requirements for the runtime environment of the AliLiveSDK demo for Android. This topic also describes how to compile the demo.

Environment requirements

The following table describes the mandatory requirements for the runtime environment.

Item Requirement
Android system version Android 5.0 and later
Android API version Lollipop (API 20) and later
CPU architecture ARM64 or ARMv7
Integration tool Android Studio

The following table describes the optional requirements for the runtime environment. The demo is based on the environment information described in the table. The environment information is provided for your reference.

Item Requirement
Android Studio version 4.1.1
JRE 1.8.0_152-release-1024-b01 x86_64
JVM OpenJDK 64-Bit
compileSdkVersion 29
buildToolsVersion 29.0.0
minSdkVersion 20
targetSdkVersion 29
gradle version gradle-6.5-all
gradle plugin version com.android.tools.build:gradle:4.1.1

Compile the demo

  1. Download and decompress the package of Gradle v6.5. For more information, see Gradle Build Tool.
    01
  2. Import the project.

    Open Android Studio, click Open an Existing Project, and then select the alilivesdk_demo project in the directory of the demo.

  3. Compile and run the demo.
    1. After the demo is compiled, click Run to install the demo on an Android device.
    2. Run the demo on the Android device. On the homepage, go to the room module and modify the room number, user ID, and nickname.
    3. Go to the caster and audience pages to experience the joint stream feature.
    Note The demo can be run only on a physical device. You cannot run the demo on a virtual machine.