> [!WARNING]
> **Deprecated:** Smart Lock for Passwords is deprecated. To ensure the continued security and usability of your app, [migrate to
> Credential Manager](https://developer.android.com/training/sign-in/passkeys/) today. Credential Manager supports passkey, password, and federated identity authentication (such as Sign-in with Google), stronger security, and a more consistent user experience.

Before you start integrating Smart Lock for Passwords
into your app, enable the Play Services SDK in your
Android Studio project. [Next steps](https://developers.google.com/identity/smartlock-passwords/android/get-started.md.txt#next_steps) describes how to integrate
Smart Lock for Passwords into your app.

## Prerequisites

Smart Lock for Passwords on Android requires the following:

- A compatible Android device that runs Android 7.0 or newer and includes the Google Play Store or an emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or newer and has Google Play services version 15.0.0 or newer.
- The latest version of the Android SDK, including the SDK Tools component. The SDK is available from the **Android SDK Manager** in Android Studio.
- A project configured to compile against Android 7.0 (Nougat) or newer.

This guide is written for users of Android Studio, which is the recommended
development environment.

## Configure your Android Studio project

Integrating Smart Lock for Passwords in your Android
app requires you to import and reference the Google Play services library in
your Android Studio project. Add the following line to the `dependencies`
section of the `build.gradle` file in your application module:

    implementation 'com.google.android.gms:play-services-auth:22.0.0'

## Next steps

Now that you have configured your project,
you can [retrieve user credentials](https://developers.google.com/identity/smartlock-passwords/android/retrieve-credentials.md.txt)
and use them to sign users in your app.