Manual install

Updated

Install the Signaling SDK for your platform, using a package manager or a downloaded package.

To manually install the Signaling SDK for Android, do one of the following:

Automatically integrate the SDK with Maven

  1. Starting with v2.3.1, the Signaling SDK is distributed through the Agora Maven repository. Open the settings.gradle file in the project's root directory and add the repository under dependencyResolutionManagement. Keep your project's existing repositories:

    dependencyResolutionManagement {
        repositories {
            maven { url = 'https://download.agora.io/maven/' }
            google()
            mavenCentral()
        }
    }

    If your project doesn't use dependencyResolutionManagement, add the repository under allprojects.repositories in the root build.gradle file instead.

  2. Add the io.agora.rtm:rtm-sdk dependency in the /app/build.gradle file under your project. Replace x.y.z with the SDK version number, such as 2.3.1. To get the latest version number, see the Release notes.

    dependencies {
        implementation 'io.agora.rtm:rtm-sdk:x.y.z'
    }

    To resolve integration issues when co-integrating with the RTC SDK, use io.agora.rtm:rtm-sdk-lite instead.

Manually copy the SDK files

To manually install the Signaling SDK for Android from a downloaded package:

  1. Extract Signaling SDK to a local directory, such as <unzipped_package>.

  2. Copy the following files or folders from the rtm/sdk folder of the extracted package to your Android project.

    File or folderPath in your project
    agora-rtm-sdk.jar/app/libs/
    /arm64-v8a/~/app/src/main/jniLibs/arm64-v8a/
    /armeabi-v7a/~/app/src/main/jniLibs/armeabi-v7a/
    /x86/~/app/src/main/jniLibs/x86/
    /x86_64/~/app/src/main/jniLibs/x86_64/

    Each architecture folder contains libagora-rtm-sdk.so and libaosl.so. Copy both.