A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://privacysandbox.google.com/private-advertising/setup/android/setup below:

Set up your development environment for Privacy Sandbox on Android

Set up your development environment for Privacy Sandbox on Android

Stay organized with collections Save and categorize content based on your preferences.

Follow the instructions on this page to set up the Privacy Sandbox on Android SDK in Android Studio. First, it is recommended to Install and use the latest Canary build of Android Studio. Then, within Android Studio, install the SDK and relevant build tools as follows:

  1. In Android Studio, go to Tools > SDK Manager.
  2. In the SDK Platforms tab, select the latest non-preview SDK version and the newest SDK Extension Release. In this example, the latest SDK version is Android 15 (API Level 35) with the latest extension being extension 14.
  3. Click Apply to install the SDK and extension.
  4. In the SDK Tools tab, select the latest Android SDK Build-Tools. In this example, the latest build tools, platform tools, and emulator are API Level 35.
    1. Additionally, check that you have selected the latest Android SDK Platform-Tools and Android Emulator.
  5. Click Apply to install the tools selected.
  6. Ensure that you have the latest version of the Android Gradle Plugin by navigating to Tools -> AGP Upgrade Assistant and following the on-screen instructions to update your project to take advantage of the latest features, improvements, and fixes.
Declare the correct API levels

To use the Privacy Sandbox APIs in the latest Android AdServices SDK extension, declare your app's compile API level and SDK extension level inside of your app's build.gradle file:

android {
    // this will correspond to the API level shown in the SDK installation steps
    compileSdk = 35
    // this will correspond to the extenson version number in the API level
    // column of the extension installation
    compileSdkExtension = 14
}
Get the Privacy Sandbox on Android on a supported device

After you complete the preceding setup steps, you can then test Privacy Sandbox on Android. See Configure a device or emulator image for more information.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-03-13 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3