# Adding SDK to a Project

Add the following URL to the `build.gradle` of the project:

```groovy
allprojects {
  repositories {
    maven { url "https://ozforensics.jfrog.io/artifactory/main" }
  }
}
```

Add this to the `build.gradle` of the module (VERSION is the version you need to implement. Please refer to [Changelog](/oz-knowledge/guides/developer-guide/sdk/oz-mobile-sdk/android/changelog.md)):

#### for the server-based version only

Please note: this is the default version.

```kotlin
dependencies {
  implementation 'com.ozforensics.liveness:sdk:VERSION'
}
```

#### for both server-based and on-device versions

Please note: the resulting file will be larger.

```kotlin
dependencies {
implementation 'com.ozforensics.liveness:full:VERSION'
}
```

Also, regardless of the mode chosen, add:

```kotlin
android {
  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
}
```


---

# 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://doc.ozforensics.com/oz-knowledge/guides/developer-guide/sdk/oz-mobile-sdk/android/adding-sdk-to-a-project.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.
