All Products
Search
Document Center

Simple Log Service:Install SLS SDK for Android

Last Updated:Dec 03, 2026

Install SLS SDK for Android to call SLS API operations from your Android app.

Prerequisites

Basic information

Item

Description

SDK name

Simple Log Service (SLS) SDK for Android

Developer

Alibaba Cloud Computing Co., Ltd.

SDK version

2.7.15

SDK package name

com.aliyun.sls.android.producer

SDK update date

2026.08.24

SDK size

298 KB

SDK MD5

21d449b16d5d47abefe6f08eec349547

SDK download

aliyun-log-android-sdk

Installation

  1. Create an Android project.

  2. Add the following to the root-level build.gradle of your project.

    buildscript {
        // ...
        repositories {
            mavenCentral()
    
            // (Optional) Add the aliyun maven configuration to improve the access speed. 
            // mirror of google()
            maven { url 'https://maven.aliyun.com/repository/google' }
            // mirror of central & jcenter
            maven { url 'https://maven.aliyun.com/repository/public' }
        }
        // ...
    }
    
  3. Add the following dependency to your module-level build.gradle.

    Starting with version 2.7.13, SLS SDK for Android supports 16 KB page alignment. To support Android 15 or later, use version 2.7.13.

    implementation 'io.github.aliyun-sls:aliyun-log-android-sdk:2.7.13@aar'

    You can then call SLS SDK for Android APIs in your project.

Compliance usage instructions

Important

You must inform your users that you use Simple Log Service (SLS) SDK. Add the following reference clauses to your Privacy Policy.

  • SDK name: Simple Log Service (SLS) SDK

  • Purpose: Perform app data statistics and analysis

  • Operator: Alibaba Cloud Computing Co., Ltd.

  • Types of personal information collected: device information, network information, application information (application name/application version number), and carrier information

What to do next

Get started with Simple Log Service SDK for Android