# 1. Including the SDK

## Adding the Gradle Dependency

Add the Sentiance repository to your project (top-level) **build.gradle** file.

```groovy
allprojects {
  repositories {
    ...
    maven {
      url "https://repository.sentiance.com"
    }
  }
}
```

In the **build.gradle** file of your app module, add the following line to the dependencies section. Replace the version `x.y.+` with the latest one from [here](/important-topics/sdk/changelog/android.md).

```groovy
implementation (platform('com.sentiance:sdk-bom:x.y.+'))
implementation ('com.sentiance:sdk')
```

Your app should now build with the Sentiance SDK as a dependency.

## Proguard Rules

The Sentiance SDK includes all necessary Proguard rules. These are automatically applied to your app during the build process.

### DexGuard

If you are using DexGuard, please add the following rule, to prevent SDK manifest metadata from being removed.

```
-keepresourcexmlelements manifest/application/meta-data@name=com.sentiance.sdk.**
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sentiance.com/a-complete-integration/android-sdk/include-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
