Install SLS SDK for Android to call SLS API operations from your Android app.
Prerequisites
-
Simple Log Service is activated. Activate Simple Log Service.
An Android development environment is set up. Get the Android SDK and Android Studio.
SLS SDK for Android requires Android 4.0 or later. Run
adb shell getprop ro.build.version.releaseto check your Android version.
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 |
|
SDK update date | 2026.08.24 |
SDK size | 298 KB |
SDK MD5 |
|
SDK download |
Installation
Create an Android project.
Add the following to the root-level
build.gradleof 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' } } // ... }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
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
Add the preceding clauses to your Privacy Policy. Display your Privacy Policy in a pop-up before your app first runs and obtain end user consent.