संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
androidx नेमस्पेस में Android Jetpack लाइब्रेरी शामिल होती हैं. Support Library की तरह ही, androidx नेमस्पेस में मौजूद लाइब्रेरी, Android प्लैटफ़ॉर्म से अलग शिप की जाती हैं. साथ ही, ये Android के सभी वर्शन के साथ काम करती हैं.
AndroidX, ओरिजनल Android Support Library का बेहतर वर्शन है. अब इसे अपडेट नहीं किया जाता.
androidx पैकेज, Support Library की जगह पूरी तरह से ले लेते हैं. ये एक जैसी सुविधाएं और नई लाइब्रेरी उपलब्ध कराते हैं.
इसके अलावा, AndroidX में ये सुविधाएं भी शामिल हैं:
AndroidX के सभी पैकेज, एक जैसे नेमस्पेस में होते हैं. यह नेमस्पेस, androidx स्ट्रिंग से शुरू होता है. Support Library पैकेज को, उनसे मिलते-जुलते androidx.* पैकेज में मैप कर दिया गया है. सभी पुरानी क्लास और बिल्ड आर्टफ़ैक्ट को नई क्लास और बिल्ड आर्टफ़ैक्ट में पूरी तरह से मैप करने के लिए, पैकेज रिफ़ैक्टरिंग पेज देखें.
सपोर्ट लाइब्रेरी के उलट, androidx पैकेज को अलग से मैनेज किया जाता है और अपडेट किया जाता है. androidx पैकेज, सिमैंटिक वर्शनिंग के नियमों का सख्ती से पालन करते हैं. इनकी शुरुआत वर्शन 1.0.0 से होती है. अपने प्रोजेक्ट में AndroidX लाइब्रेरी को अलग-अलग अपडेट किया जा सकता है.
वर्शन 28.0.0, Support Library का आखिरी वर्शन है.
अब android.support लाइब्रेरी के कोई और वर्शन रिलीज़ नहीं किए जाएंगे.
सभी नई सुविधाओं को androidx नेमस्पेस में डेवलप किया जाएगा.
अपने प्रोजेक्ट में androidx लाइब्रेरी का इस्तेमाल करना
अगर आपको किसी नए प्रोजेक्ट में androidx-नेमस्पेस वाली लाइब्रेरी का इस्तेमाल करना है, तो आपको कंपाइल एसडीके को Android 9.0 (एपीआई लेवल 28) या इसके बाद वाले वर्शन पर सेट करना होगा. साथ ही, आपको gradle.properties फ़ाइल में, Android Gradle प्लगिन के इन दोनों फ़्लैग को true पर सेट करना होगा.
android.useAndroidX: इस फ़्लैग को true पर सेट करने पर, Android प्लगिन, Support Library के बजाय सही AndroidX लाइब्रेरी का इस्तेमाल करता है. अगर इस फ़्लैग के लिए कोई वैल्यू नहीं दी गई है, तो डिफ़ॉल्ट रूप से इसकी वैल्यू false होती है.
android.enableJetifier: इस फ़्लैग को true पर सेट करने पर, Android प्लगिन अपने-आप तीसरे पक्ष की मौजूदा लाइब्रेरी को AndroidX डिपेंडेंसी का इस्तेमाल करने के लिए माइग्रेट कर देता है. इसके लिए, वह लाइब्रेरी के बाइनरी कोड को फिर से लिखता है. अगर इस फ़्लैग के लिए कोई वैल्यू नहीं दी गई है, तो डिफ़ॉल्ट रूप से यह false पर सेट होता है.
Jetpack के होम पेज पर मौजूद कॉम्पोनेंट के बारे में ज़्यादा जानें.
Support Library से androidx में पैकेज को फिर से व्यवस्थित करने के बारे में ज़्यादा जानने के लिए, इस विषय पर ब्लॉग पोस्ट पढ़ें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# AndroidX overview\n\nThe `androidx` namespace comprises the [Android Jetpack](/jetpack) libraries. Like the Support Library, libraries in the `androidx` namespace ship separately from the Android platform and provide backward compatibility across Android releases.\n\nAndroidX is a major improvement to the original Android\n[Support Library](/topic/libraries/support-library), which is no longer maintained.\n`androidx` packages fully replace the Support Library by providing feature parity and new libraries.\n\nIn addition, AndroidX includes the following features:\n\n- All packages in AndroidX live in a consistent namespace starting with the\n string `androidx`. The Support Library packages have been mapped into\n corresponding `androidx.*` packages. For a full mapping of all the old classes\n and build artifacts to the new ones, see the\n [Package Refactoring](/jetpack/androidx/refactor) page.\n\n- Unlike the Support Library, `androidx` packages are separately maintained\n and updated. The `androidx` packages use strict [Semantic Versioning](https://semver.org/),\n starting with version 1.0.0. You can update AndroidX libraries in your project\n independently.\n\n- [Version 28.0.0](/topic/libraries/support-library/revisions#28-0-0)\n is the last release of the Support Library.\n There will be no more `android.support` library releases.\n All new feature development will be in the `androidx` namespace.\n\n| **Note:** Jetpack libraries don't send any user data to a backend service of any kind. This means that integrating a Jetpack library into your app has no impact on your app's [Data safety form](/guide/topics/data/collect-share) in the Play Console.\n\nUsing `androidx` libraries in your project\n------------------------------------------\n\nSee [Migrating to AndroidX](/jetpack/androidx/migrate) to learn how to migrate an existing project.\n\nIf you want to use `androidx`-namespaced libraries in a new project,\nyou need to set the compile SDK to Android 9.0 (API level 28) or higher and set\nboth of the following Android Gradle plugin flags to `true` in your\n[`gradle.properties`](/studio/build#properties-files) file.\n\n- `android.useAndroidX`: When this flag is set to `true`, the Android plugin uses the appropriate AndroidX library instead of a Support Library. The flag is `false` by default if it is not specified.\n- `android.enableJetifier`: When this flag is set to `true`, the Android plugin automatically migrates existing third-party libraries to use AndroidX dependencies by rewriting their binaries. The flag is `false` by default if it is not specified.\n\n| **Note:** Libraries in `androidx` officially support the [Gradle](https://gradle.org/) build tool with [Android Gradle plugin](/build/releases/gradle-plugin) and don't test or maintain compatibility with any other build configuration.\n\nAPI Reference\n-------------\n\nAll the packages and classes in the `androidx` namespace can be found in the\n[AndroidX reference section](/reference/androidx/packages).\n\nAdditional Resources\n--------------------\n\nLearn more about components on the Jetpack [home page](/jetpack).\nFor more information about the package refactoring from the Support Library\nto `androidx`,\nsee [the blog post](https://android-developers.googleblog.com/2018/05/hello-world-androidx.html)\non that topic."]]