समस्याओं की शिकायत करें, ताकि हम गड़बड़ियां ठीक कर सकें.
शुरू करने से पहले,
ऐप्लिकेशन के आर्किटेक्चर की गाइड में मददगार सिद्धांतों के बारे में बताया गया है.
सभी Android ऐप्लिकेशन पर लागू करें और
आर्किटेक्चर कॉम्पोनेंट को एक साथ इस्तेमाल करना.
आर्किटेक्चर के कॉम्पोनेंट, Google की Maven रिपॉज़िटरी में उपलब्ध हैं. इस्तेमाल करने के लिए
उन्हें अपने प्रोजेक्ट में रिपॉज़िटरी जोड़ें.
settings.gradle फ़ाइल खोलें और google() डेटा स्टोर करने की जगह जोड़ें:
अपने ऐप्लिकेशन या मॉड्यूल के लिए build.gradle फ़ाइल खोलें और आर्टफ़ैक्ट जोड़ें
ऐसा करना ज़रूरी है. सभी आर्किटेक्चर के लिए डिपेंडेंसी जोड़ी जा सकती है
कॉम्पोनेंट पर क्लिक करें या कोई सबसेट चुनें.
रिलीज़ नोट में, हर आर्किटेक्चर कॉम्पोनेंट के लिए डिपेंडेंसी का एलान करने के निर्देश देखें:
अप-टू-डेट जानकारी के लिए, AndroidX रिलीज़ देखें
वर्शन नंबर डालें.
AndroidX के रीफ़ैक्टर के बारे में ज़्यादा जानकारी और यह जानकारी पाने के लिए कि इन क्लास पर इसका क्या असर पड़ता है
पैकेज और मॉड्यूल आईडी के लिए, AndroidX पर माइग्रेट करना देखें.
Kotlin
Kotlin एक्सटेंशन मॉड्यूल, कई AndroidX डिपेंडेंसी के साथ काम करते हैं. ये
मॉड्यूल के नाम के साथ सफ़िक्स -ktx जुड़ा होता है. उदाहरण के लिए:
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# Add components to your project\n\n[Issue Tracker](https://issuetracker.google.com/issues/new?component=197448&template=878802)\n\nReport issues so we can fix bugs.\n\nBefore getting started, read the\n[Guide to app architecture](/topic/architecture) for useful principles that\napply to all Android apps and for guidance on\nusing architecture components together.\n\nArchitecture components are available from Google's Maven repository. To use\nthem, add the repository to your project.\n\nOpen the `settings.gradle` file and add the `google()` repository: \n\n### Groovy\n\n```groovy\ndependencyResolutionManagement {\n ...\n repositories {\n google()\n jcenter()\n }\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencyResolutionManagement {\n ...\n repositories {\n google()\n jcenter()\n }\n}\n```\n| **Warning:** The JCenter repository is read-only, as of March 31, 2021. For more information, see [JCenter service update](/studio/build/jcenter-migration).\n\nDeclare dependencies\n--------------------\n\nOpen the `build.gradle` file for your app or module and add the artifacts\nthat you need as dependencies. You can add dependencies for all architecture\ncomponents or choose a subset.\n\nSee the instructions for declaring dependencies for each architecture component in the release notes:\n\n- [Futures (found in androidx.concurrent)](/jetpack/androidx/releases/concurrent)\n- [Lifecycle (including ViewModel)](/jetpack/androidx/releases/lifecycle)\n- [Navigation (including SafeArgs)](/jetpack/androidx/releases/navigation)\n- [Paging](/jetpack/androidx/releases/paging)\n- [Room](/jetpack/androidx/releases/room)\n- [WorkManager](/jetpack/androidx/releases/work)\n\nSee [AndroidX releases](/jetpack/androidx/versions) for the most up-to-date\nversion numbers for each component.\n\nFor more information about the AndroidX refactor and how it affects these class\npackages and module IDs, see [Migrate to AndroidX](/jetpack/androidx/migrate).\n\nKotlin\n------\n\nKotlin extension modules are supported for several AndroidX dependencies. These\nmodules have the suffix `-ktx` appended to their names. For example: \n\n### Groovy\n\n```groovy\nimplementation \"androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version\"\n```\n\n### Kotlin\n\n```kotlin\nimplementation(\"androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version\")\n```\n\nbecomes \n\n### Groovy\n\n```groovy\nimplementation \"androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version\"\n```\n\n### Kotlin\n\n```kotlin\nimplementation(\"androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version\")\n```\n\nMore information, including docs for Kotlin extensions, can be found in the\n[KTX documentation](/kotlin/ktx).\n\n**Note:** For Kotlin based apps, make sure you use\n`kapt` instead of `annotationProcessor`. You should also\nadd the `kotlin-kapt` plugin.\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [App Architecture: UI Layer - Get Started - Android Developers](/topic/libraries/data-binding/start)\n- [Work with observable data objects](/topic/libraries/data-binding/observability)\n- [Migrate from Kotlin synthetics to Jetpack view binding](/topic/libraries/view-binding/migration)"]]