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

# Universal Components for Android Applications

> Learn how to install and configure Auth0 Universal Components for Android applications.

> [!WARNING]
>
> **The Auth0 Universal Components feature is in [Beta](/docs/docs/troubleshoot/product-lifecycle/product-release-stages).**
>
> To participate, contact Auth0 Support.
>
> By using this feature, you agree to the applicable Free Trial terms in Okta's [Master Subscription Agreement](https://www.okta.com/legal).

The Auth0 [Universal Components for Android](https://github.com/auth0/ui-components-android) SDK provides pre-built, embeddable UI for Auth0 identity flows using [Jetpack Compose](https://developer.android.com/compose).

Universal Components for Android are built on top of the [Auth0 Android SDK](https://github.com/auth0/Auth0.Android) and integrate with [My Account APIs](/docs/docs/manage-users/my-account-api).

## Prerequisites

To configure the Universal Components for Android SDK, you need:

* Operating systems: **Android 11+** (API 30).
* Programming language: **Kotlin 2.2+**, **Android Gradle Plugin 8.11+**, **Jetpack Compose BOM 2024.09.00+**, **JDK 17+**.

To enable Auth0 [passkey](/docs/docs/authenticate/database-connections/passkeys) support, you need **Android 14+**.

## Install the SDK

The Universal Components for Android SDK is distributed as the `com.auth0.universalcomponents:universal-components` package through the [Maven Central](https://mvnrepository.com/artifact/com.auth0) repository.

### Gradle

Use Gradle to install the SDK:

1. Add the `mavenCentral()` repository if it is not listed in your `settings.gradle` or `settings.gradle.kts` file:

   ```kotlin theme={null}
   dependencyResolutionManagement {
       repositories {
           mavenCentral()
           google()
       }
   }
   ```

2. Add the dependency to your module-level `build.gradle` or `build.gradle.kts`:

   ```kotlin theme={null}
   dependencies {
       implementation("com.auth0.universalcomponents:universal-components:1.0.0-beta.0")
   }
   ```

Auth0 recommends using [Auth0.Android v3+](https://github.com/auth0/Auth0.Android) in your application. Older versions may cause compilation errors when resolved alongside Universal Components.

### Configure Compose

Ensure [Compose](https://developer.android.com/develop/ui/compose/setup-compose-dependencies-and-compiler#setup-compose-dependencies) is enabled in your application's `build.gradle` file:

```kotlin wrap lines theme={null}
android {
    buildFeatures {
        compose = true
    }
}
```

### Verify the installation

To verify the Universal Components for Android SDK installation, confirm the dependency resolves by running:

```bash wrap lines theme={null}
./gradlew app:dependencies | grep universal-components
```

## Sample application

You can review the sample application of the [Universal Components for Android](https://github.com/auth0/ui-components-android#run-the-sample-app) SDK on GitHub.

The sample application includes `MainActivity.kt` that initializes the SDK using `Auth0UniversalComponents.initialize()` and `LoginSecurityScreen.kt` that renders the `AuthenticatorSettingsComponent`.

## Next steps

> [card] [Customize style and themes](/docs/docs/get-started/universal-components/android/android-theming)
>
> Override colors, typography, spacing, radius, and size tokens using the Auth0 design-token system.

> [card] [Build a Self-Service Account Security Interface](/docs/docs/get-started/universal-components/android/components/my-account-overview)
>
> Prepare your Auth0 tenant, initialize the SDK, and render the authentication-methods management UI.
