تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تشتمل مساحة الاسم androidx على مكتبات Android Jetpack. كما هي الحال في Support Library، يتم نقل المكتبات المتوفّرة في مساحة الاسم androidx بشكل منفصل عن نظام Android الأساسي وتوفّر توافقًا مع الأنظمة القديمة في جميع إصدارات Android.
يُعدّ AndroidX تحسينًا كبيرًا على مكتبة دعم Android الأصلية التي لم تعُد تخضع للصيانة.
تحل حِزم androidx محل "مكتبة الدعم" بالكامل من خلال توفير تكافؤ الميزات ومكتبات جديدة.
بالإضافة إلى ذلك، يتضمّن AndroidX الميزات التالية:
تتوفّر جميع الحِزم في AndroidX في مساحة اسم متسقة تبدأ بالسلسلة androidx. تم ربط حزم Support Library في
حزم androidx.* المقابلة. لإجراء تخطيط كامل لجميع الفئات القديمة وإنشاء أدوات للصفوف الجديدة، راجع صفحة إعادة بناء الحزم.
على عكس Support Library، يتم الاحتفاظ بحِزم androidx وتعديلها بشكل منفصل. تستخدم حِزم androidxتحديد إصدارات دلالية صارمة،
بدءًا بالإصدار 1.0.0. يمكنك تحديث مكتبات AndroidX في مشروعك
بشكل مستقل.
الإصدار 28.0.0
هو الإصدار الأخير من Support Library.
لن يتوفّر المزيد من إصدارات المكتبة في android.support.
ستكون جميع عمليات تطوير الميزات الجديدة في مساحة الاسم androidx.
إذا أردت استخدام المكتبات التي تحمل أسماء androidx في مشروع جديد،
عليك ضبط حزمة تطوير البرامج (SDK) للتجميع على الإصدار Android 9.0 (المستوى 28 لواجهة برمجة التطبيقات) أو أعلى وضبط
كلا علامات مكوّنات Android Gradle التالية على true في ملف
gradle.properties.
android.useAndroidX: عند ضبط هذه العلامة على true، يستخدم مكوّن Android الإضافي
مكتبة AndroidX المناسبة بدلاً من "مكتبة الدعم". وتكون العلامة هي false بشكل تلقائي إذا لم يتم تحديدها.
android.enableJetifier: عند ضبط هذه العلامة على true، ينقل المكوّن الإضافي في Android تلقائيًا مكتبات الجهات الخارجية الحالية لاستخدام تبعيات AndroidX من خلال إعادة كتابة برامجها الثنائية. وتكون العلامة هي false تلقائيًا إذا لم يتم تحديدها.
مرجع حول API
يمكن العثور على جميع الحِزم والفئات في مساحة الاسم androidx في
قسم مرجع AndroidX.
مراجع إضافية
تعرَّف على مزيد من المعلومات حول المكوّنات على الصفحة الرئيسية في Jetpack.
لمزيد من المعلومات حول إعادة هيكلة الحزمة من Support Library إلى androidx، يمكنك الاطّلاع على مشاركة المدونة حول هذا الموضوع.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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."]]