संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Android 14 के एपीआई का इस्तेमाल करके ऐप्लिकेशन डेवलप करने और Android 14 के व्यवहार में हुए बदलावों के साथ अपने ऐप्लिकेशन की जांच करने के लिए, आपको Android 14 SDK टूल सेट अप करना होगा. Android Studio में Android 14 SDK टूल सेट अप करने और Android 14 पर अपना ऐप्लिकेशन बनाने और उसे चलाने के लिए, इस पेज पर दिए गए निर्देशों का पालन करें.
Android Studio डाउनलोड करना
Android 14 SDK टूल में ऐसे बदलाव शामिल हैं जो Android Studio के कुछ पुराने वर्शन के साथ काम नहीं करते. Android 14 SDK टूल के साथ बेहतरीन डेवलपमेंट अनुभव पाने के लिए, Android Studio Flamingo | 2022.2.1 या इसके बाद के वर्शन का इस्तेमाल करें.
Android Studio में, Android 14 SDK टूल को इस तरह इंस्टॉल किया जा सकता है:
टूल > SDK मैनेजर पर क्लिक करें. इसके बाद, पैकेज की जानकारी दिखाएं पर क्लिक करें.
SDK प्लैटफ़ॉर्म टैब में, Android 14.0 ("UpsideDownCake") सेक्शन को बड़ा करें और Android SDK Platform 34 पैकेज चुनें.
SDK टूल टैब में, Android SDK Build-Tools 34 सेक्शन को बड़ा करें और 34.x.x का नया वर्शन चुनें.
चुने गए पैकेज डाउनलोड और इंस्टॉल करने के लिए, लागू करें > ठीक है पर क्लिक करें.
अपने ऐप्लिकेशन के बिल्ड कॉन्फ़िगरेशन को अपडेट करना
Android 14 के एपीआई ऐक्सेस करने और यह देखने के लिए कि आपका ऐप्लिकेशन, Android 14 पर काम करता है या नहीं, मॉड्यूल-लेवल की build.gradle या build.gradle.kts फ़ाइल खोलें और
उन्हें Android 14 की वैल्यू से अपडेट करें. वैल्यू को फ़ॉर्मैट करने का तरीका, इस्तेमाल किए जा रहे Android Gradle प्लग इन (AGP) के वर्शन पर निर्भर करता है.
AGP 7.0.0 या इसके बाद का वर्शन
अगर AGP 7.0.0 या इसके बाद के वर्शन का इस्तेमाल किया जा रहा है, तो Android 14 के लिए, अपने ऐप्लिकेशन की build.gradle या
build.gradle.kts फ़ाइल को इन वैल्यू के साथ अपडेट करें:
अगर AGP 4.2.0 या इससे पहले के वर्शन का इस्तेमाल किया जा रहा है, तो Android 14 के लिए, अपने ऐप्लिकेशन की build.gradle या
build.gradle.kts फ़ाइल को इन वैल्यू के साथ अपडेट करें:
उन बदलावों के बारे में जानने के लिए जिनका आपके ऐप्लिकेशन पर असर पड़ सकता है और अपने ऐप्लिकेशन में इन बदलावों की जांच करने का तरीका जानने के लिए, ये विषय पढ़ें:
Android 14 में उपलब्ध नए एपीआई और सुविधाओं के बारे में ज़्यादा जानने के लिए, Android
14 की सुविधाएं लेख पढ़ें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Set up the Android 14 SDK\n\nTo develop with Android 14 APIs and test your app with the Android 14 behavior\nchanges, you need to set up the Android 14 SDK. Follow the instructions on this\npage to set up the Android 14 SDK in Android Studio and build and run your app\non Android 14.\n\nGet Android Studio\n------------------\n\nThe Android 14 SDK includes changes that are not compatible with some lower\nversions of Android Studio. For the best development experience with the\nAndroid 14 SDK, use Android Studio Flamingo \\| 2022.2.1 or higher.\n\n\u003cbr /\u003e\n\n[Get Android Studio](/studio)\n\nInstall the SDK\n---------------\n\nWithin Android Studio, you can install the Android 14 SDK as follows:\n\n1. Click **Tools \\\u003e SDK Manager** , then click **Show Package Details**.\n2. In the **SDK Platforms** tab, expand the **Android 14.0 (\"UpsideDownCake\")** section and select the **Android SDK Platform 34** package.\n3. In the **SDK Tools** tab, expand the **Android SDK Build-Tools 34** section and select the latest `34.x.x` version.\n4. Click **Apply \\\u003e OK** to download and install the selected packages.\n\nUpdate your app's build configuration\n-------------------------------------\n\nTo access Android 14 APIs and test your app's compatibility with Android 14,\nopen your module-level `build.gradle` or `build.gradle.kts` file, and update\nthem with values for Android 14. How you format the values depends on the\nversion of the Android Gradle plugin (AGP) that you are using.\n| **Note:** If you aren't quite ready to fully support Android 14, you can still perform app compatibility testing by using a debuggable app, an Android 14 device, and the [compatibility framework](/about/versions/14/reference/compat-framework-changes), without changing your app to compile with or target the SDK.\n\n### AGP 7.0.0 or higher\n\nIf you are using AGP 7.0.0 or higher, update your app's `build.gradle` or\n`build.gradle.kts` file with the following values for Android 14: \n\n### Groovy\n\n```groovy\nandroid {\n compileSdk 34\n ...\n defaultConfig {\n targetSdk 34\n }\n}\n```\n\n### Kotlin\n\n```kotlin\nandroid {\n compileSdk = 34\n ...\n defaultConfig {\n targetSdk = 34\n }\n}\n```\n\n### AGP 4.2.0 or lower\n\nIf you are using AGP 4.2.0 or lower, update your app's `build.gradle` or\n`build.gradle.kts` file with the following values for Android 14: \n\n### Groovy\n\n```groovy\nandroid {\n compileSdkVersion \"34\"\n ...\n defaultConfig {\n targetSdkVersion \"34\"\n }\n}\n```\n\n### Kotlin\n\n```kotlin\nandroid {\n compileSdkVersion = \"34\"\n ...\n defaultConfig {\n targetSdkVersion = \"34\"\n }\n}\n```\n\nNext steps\n----------\n\nTo learn about the changes that might affect your app, and to learn how to test\nthese changes in your app, read the following topics:\n\n- [Behavior changes that affect all apps](/about/versions/14/behavior-changes-all)\n- [Behavior changes that affect only apps that target Android 14](/about/versions/14/behavior-changes-14)\n\nTo learn more about new APIs and features available in Android 14, read [Android\n14 features](/about/versions/14/features)."]]