# Install the Service SDK for Android

Install the Service SDK for Android using Gradle.

## Before You Begin

Before running through these steps, be sure you’ve checked the [Requirements for the Service Chat SDK for Android](/docs/service/service-sdk-android/guide/android-sdk-prereqs.md).

:::important
The legacy chat product is scheduled for retirement on February 14, 2026, and is in maintenance mode until then. During this phase, you can continue to use chat, but we no longer recommend that you implement new chat channels. To avoid service interruptions to your customers, migrate to [Messaging for In-App and Web](https://help.salesforce.com/s/articleView?id=service.miaw_intro_landing.htm\&type=5) before that date. Messaging offers many of the [chat features](https://help.salesforce.com/s/articleView?id=service.miaw_chat_vs_messaging.htm\&type=5) that you love plus asynchronous conversations that can be picked back up at any time. Learn about chat retirement in [Help](https://help.salesforce.com/s/articleView?id=001790618\&type=1).
:::

To get started with the Service SDK for Android:

1. Install the SDK using [Gradle](https://gradle.org/).

   The Service SDK is hosted in a maven repository.

   | Feature      | Dependency Name                                                                                                                                  | Maven Repository URL                                               |
   | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |
   | All Features | `com.salesforce.service:servicesdk:`Service Chat SDK                                                                                             | `https://s3.amazonaws.com/salesforcesos.com/android/maven/release` |
   | Chat         | `com.salesforce.service:chat-ui:`Service Chat SDK (if you're only using Chat Core, then use `com.salesforce.service:chat-core:`Service Chat SDK) | `https://s3.amazonaws.com/salesforcesos.com/android/maven/release` |

   To install **all** the Service SDK features, add the following maven repositories to your project's `build.gradle` file.

   ```java
   allprojects {
     repositories {
       google()
       mavenCentral()
       maven {
         url 'https://s3.amazonaws.com/salesforcesos.com/android/maven/release'
       }
     }
   }
   ```

   :::note
   Be sure to put the `repositories` list in the `allprojects` section.
   :::

   And add the following dependency to your module's `build.gradle` file.

   ```java
   dependencies {
     implementation 'com.salesforce.service:servicesdk:224.2.6'
   }
   ```

2. Declare permissions.

   You must declare the following permissions in your `AndroidManifest.xml`.

   ```java
   <uses-permission android:name="android.permission.INTERNET"/>
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
   ```

You can now start using the Service SDK for Android.
