Android पर Privacy Sandbox के लिए, अपना डेवलपमेंट एनवायरमेंट सेट अप करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Android Studio में, Android पर प्राइवसी सैंडबॉक्स SDK टूल को सेट अप करने के लिए, इस पेज पर दिए गए निर्देशों का पालन करें. सबसे पहले, हमारा सुझाव है कि Android Studio का नया Canary वर्शन इंस्टॉल करें और उसका इस्तेमाल करें. इसके बाद, Android Studio में एसडीके और काम के बिल्ड टूल इस तरह इंस्टॉल करें:
Android Studio में, टूल > SDK मैनेजर पर जाएं.
SDK प्लैटफ़ॉर्म टैब में, नया नॉन-प्रीव्यू SDK टूल वर्शन और नया SDK टूल एक्सटेंशन रिलीज़ चुनें.
इस उदाहरण में, SDK टूल का नया वर्शन Android 15 (एपीआई लेवल 35) है. साथ ही, नया एक्सटेंशन 14 है.
SDK टूल और एक्सटेंशन इंस्टॉल करने के लिए, लागू करें पर क्लिक करें.
SDK टूल टैब में, Android SDK के सबसे नए बिल्ड-टूल चुनें.
इस उदाहरण में, नए बिल्ड टूल, प्लैटफ़ॉर्म टूल, और एमुलेटर, एपीआई लेवल 35 के हैं.
इसके अलावा, देख लें कि आपने Android SDK Platform-Tools का नया वर्शन और Android एमुलेटर चुना हो.
चुने गए टूल इंस्टॉल करने के लिए, लागू करें पर क्लिक करें.
पक्का करें कि आपके पास Android Gradle प्लग इन का नया वर्शन हो. इसके लिए, टूल -> AGP अपग्रेड असिस्टेंट पर जाएं. साथ ही, नई सुविधाओं, सुधारों, और गड़बड़ियों को ठीक करने के लिए, अपने प्रोजेक्ट को अपडेट करने के लिए स्क्रीन पर दिए गए निर्देशों का पालन करें.
सही एपीआई लेवल की जानकारी देना
Android AdServices SDK टूल के नए वर्शन में Privacy Sandbox APIs का इस्तेमाल करने के लिए, ऐप्लिकेशन की build.gradle फ़ाइल में अपने ऐप्लिकेशन के कंपाइल किए गए एपीआई लेवल और SDK टूल के एक्सटेंशन लेवल का एलान करें:
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}
Android पर प्राइवसी सैंडबॉक्स की सुविधा वाले डिवाइस पर इसे इस्तेमाल करना
सेटअप के ऊपर दिए गए चरणों को पूरा करने के बाद, Android पर Privacy Sandbox का जांचा जा सकता है. ज़्यादा जानकारी के लिए, डिवाइस या एमुलेटर इमेज कॉन्फ़िगर करना लेख पढ़ें.
[[["समझने में आसान है","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"]],["आखिरी बार 2025-03-20 (UTC) को अपडेट किया गया."],[[["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"]]