با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
AndroidX APIهای کتابخانه پشتیبانی اصلی را با بسته هایی در فضای نام androidx جایگزین می کند. فقط نام بسته و مصنوع Maven تغییر کرد. نام کلاس، متد و فیلد تغییر نکرد.
پیش نیازها
قبل از مهاجرت، برنامه خود را به روز کنید. توصیه می کنیم پروژه خود را برای استفاده از نسخه نهایی کتابخانه پشتیبانی به روز کنید: نسخه 28.0.0 . این به این دلیل است که مصنوعات AndroidX با نسخه 1.0.0 معادل باینری آرتیفکت های کتابخانه پشتیبانی 28.0.0 هستند.
نقشه برداری ها
اگر به دلیل اینکه پروژه شما به طور کامل به AndroidX منتقل نشده است، با مشکل مواجه شدید، برای تعیین نگاشت مناسب از کتابخانه پشتیبانی به مصنوعات و کلاس های AndroidX مربوطه، به این جداول مراجعه کنید:
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Migrate to AndroidX\n\nAndroidX replaces the original support library APIs with packages in the\n`androidx` namespace. Only the package and Maven artifact names changed; class,\nmethod, and field names did not change.\n| **Caution:** As of late 2021, most of the library ecosystem already supports AndroidX natively. This means that your project is most likely already using AndroidX libraries directly and there is no need to follow the steps in this migration guide. Additionally, the [`enableJetifier`](#migrate_an_existing_project_using_android_studio) flag mentioned in this guide can lead to slower build times and should not be used unless it's necessary.\n|\n|\n| If your project already has the `enableJetifier` flag and it's\n| turned on, you can run Build Analyzer's Jetifier check to confirm if it's\n| actually needed. The Build Analyzer check is available starting in\n| [Android Studio Chipmunk](/studio/preview/features#jetifier-build-analyzer).\n\nPrerequisites\n-------------\n\nBefore you migrate, bring your app up to date.\nWe recommend updating your project to use the final version of the support\nlibrary: [version 28.0.0](/topic/libraries/support-library/revisions#28-0-0).\nThis is because AndroidX artifacts with version 1.0.0 are binary equivalent to\nthe Support Library 28.0.0 artifacts.\n| **Note:** We recommend working in a separate branch when migrating. Also try to avoid refactoring your code while performing the migration.\n\nMappings\n--------\n\nIf you run into issues because your project hasn't fully migrated to AndroidX,\nrefer to these tables to determine the proper mappings from the support library\nto the corresponding AndroidX artifacts and classes:\n\n- [Maven artifact mappings](/jetpack/androidx/migrate/artifact-mappings)\n- [Class mappings](/jetpack/androidx/migrate/class-mappings)\n\nFor the latest versions of the Jetpack libraries, see the [versions\npage](/jetpack/androidx/versions).\n\nAdditional resources\n--------------------\n\nTo learn more about migrating your code to AndroidX, see the following\nadditional resources:\n\n### Blog posts\n\n- [Cross-stitching Plaid and AndroidX](https://medium.com/androiddevelopers/cross-stitching-plaid-and-androidx-7603a192348e)\n- [Migrating to AndroidX: Tip, Tricks, and Guidance](https://medium.com/androiddevelopers/migrating-to-androidx-tip-tricks-and-guidance-88d5de238876)\n\n### Videos\n\n- [Migrating to AndroidX: the time is right](https://www.youtube.com/watch?v=Hyt7LR5mXLc)"]]