> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alignet.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Android requirements and installation

> Add the Alignet SDK AAR libraries and dependencies to an Android project.

## Requirements

* Android 5.0, API level 21 or later.
* Gradle 7.4 or later.
* Android Studio Chipmunk 2021.2.1 or later.
* Merchant Key provided by Alignet.
* `Payme.aar`, `SecureKey3DS.aar`, `VisaSensoryBranding.aar`, and `MastercardSonic.aar`.

[Download the official Android v2.2 package](https://docs.alignet.com/__attachments/187990020/SDK_Payme_Android_v2.2.zip)

## Add the libraries

Create a `libs` folder in the project and copy the four AAR files provided by Alignet.

<Frame caption="AAR libraries inside the Android project">
  <img src="https://mintcdn.com/alignet-dev/URrYP1BrlYUqzK1u/images/sdk-android-librerias.png?fit=max&auto=format&n=URrYP1BrlYUqzK1u&q=85&s=6a743a62216e47eca0a3947f4e826aec" alt="libs folder with the Android SDK libraries" width="812" height="457" data-path="images/sdk-android-librerias.png" />
</Frame>

```kotlin theme={"system"}
dependencies {
    implementation(files("../libs/SecureKey3DS.aar"))
    implementation(files("../libs/Payme.aar"))
    implementation(files("../libs/VisaSensoryBranding.aar"))
    implementation(files("../libs/MastercardSonic.aar"))
}
```

<Frame caption="Gradle configuration for the AAR libraries">
  <img src="https://mintcdn.com/alignet-dev/URrYP1BrlYUqzK1u/images/sdk-android-gradle.png?fit=max&auto=format&n=URrYP1BrlYUqzK1u&q=85&s=e4292e6c44fe24d4bf6be7135e23e70b" alt="AAR dependencies configured in Gradle" width="813" height="246" data-path="images/sdk-android-gradle.png" />
</Frame>

## Required dependencies

The official guide lists AndroidX Core/AppCompat, Kotlin stdlib, ViewPager2, RecyclerView, ConstraintLayout, Retrofit, Gson, OkHttp, SpongyCastle, BouncyCastle, and Nimbus JOSE JWT. Keep versions compatible with your project and the package delivered by Integrations.

<Note>
  Avoid declaring the same dependency with different versions. Inspect the dependency tree and resolve conflicts before running the SDK.
</Note>

* [ ] All four AAR files are present.
* [ ] Gradle sync completes without errors.
* [ ] The minimum API remains 21 or later.
* [ ] The Key is loaded from secure configuration.

[Continue to initialization →](/en/sdk/android/initialization)
