Build and consume a Runtime-Enabled SDK

1
Key concepts
2
Set up your development environment
3
Build an RE SDK
4
Consume the RE SDK
5
Testing, and building for distribution

Set up your development environment

Within Android Studio, install the Android SDK as follows:

  • In the SDK Platforms tab, select Android 14.0, with the latest extension level.
  • In the SDK Tools tab, select Android SDK Build-Tools 34 or later.
  • Declare your app's compile API level and SDK extension level as follows:
android {
    compileSdk = 34
    compileSdkExtension = 12
    // The rest of your configuration...
}

Set up device or emulator image

Follow the instructions on the sample repository to set up the Privacy Sandbox on an Android 14+ device or emulator image to allow end-to-end testing.

Code samples

As a reference while following this guide, we've created a sample project in the Kotlin programming language.


Step 1: Key concepts Step 3: Build a runtime-enabled SDK