This sample app integrates Clerk prebuilt UI components for authentication, user accounts, and organizations.
- A Clerk account (sign up at clerk.com)
- Google account for OAuth setup (optional, for Google Sign-In)
-
Create a Clerk Application
- Sign up for a Clerk account at dashboard.clerk.com
- Create a new application in your Clerk dashboard
- Give it whatever name you like (e.g., "Prebuilt UI")
- You can select whichever authentication methods you prefer, the Prebuilt components will handle them automatically.
-
Get Your Publishable Key
- Navigate to Developers → API Keys
- Copy your Publishable Key (starts with
pk_test_orpk_live_)
-
Clone the repository (if you haven't already):
git clone https://github.com/clerk/clerk-android.git cd clerk-android -
Add your Clerk Publishable Key:
Open the
gradle.propertiesfile in the project root and add your publishable key:PREBUILT_UI_CLERK_PUBLISHABLE_KEY=pk_test_your_publishable_key_here⚠️ Important: Replacepk_test_your_publishable_key_herewith your actual publishable key from the Clerk dashboard.
-
Using Android Studio:
- Open the project in Android Studio
- Select the
prebuilt-uirun configuration from the dropdown - Click the Run button
-
Using Gradle command line:
./gradlew :samples:prebuilt-ui:installDebug