android{// this will correspond to the API level shown in the SDK installation stepscompileSdk=35// this will correspond to the extenson version number in the API level// column of the extension installationcompileSdkExtension=14}
在支持的设备上获取 Privacy Sandbox on Android
完成上述设置步骤后,便可测试 Privacy Sandbox on Android。如需了解详情,请参阅配置设备或模拟器映像。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-20。"],[[["Follow the instructions to install the Privacy Sandbox on Android SDK within Android Studio, utilizing the latest Canary or Stable build for testing."],["Install necessary components including Android 13.0 with Extension Level 5, Android UpsideDownCakePrivacySandbox Preview (Developer Preview only), and Android SDK Build-Tools 33 or later."],["Declare the correct API levels based on whether targeting Beta or Developer Preview, with specific instructions for each."],["Ensure you have a supported device configured for testing the Privacy Sandbox on Android after completing setup."]]],["Install the latest non-preview Android SDK version and newest SDK Extension Release via Android Studio's SDK Manager. Also install the latest Android SDK Build-Tools, Platform-Tools, and Emulator. Update the Android Gradle Plugin to its latest version. In the app's `build.gradle` file, declare the `compileSdk` to the latest SDK version and `compileSdkExtension` to the latest extension number. Afterward, testing can be done on a supported device by following device or emulator configuration instructions.\n"]]