Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
AndroidX ersetzt die ursprünglichen Support Library APIs durch Pakete im Namespace androidx. Nur die Namen des Pakets und des Maven-Artefakts wurden geändert. Klassen-, Methoden- und Feldnamen haben sich nicht geändert.
Voraussetzungen
Aktualisieren Sie Ihre App vor der Migration.
Wir empfehlen, Ihr Projekt auf die Verwendung der finalen Version der Supportbibliothek zu aktualisieren: Version 28.0.0.
Das liegt daran, dass AndroidX-Artefakte mit Version 1.0.0 den Artefakten der Support Library 28.0.0 binär entsprechen.
Zuordnungen
Wenn Probleme auftreten, weil Ihr Projekt noch nicht vollständig zu AndroidX migriert wurde, finden Sie in diesen Tabellen die richtigen Zuordnungen von der Supportbibliothek zu den entsprechenden AndroidX-Artefakten und -Klassen:
Alle Inhalte und Codebeispiele auf dieser Seite unterliegen den Lizenzen wie im Abschnitt Inhaltslizenz beschrieben. Java und OpenJDK sind Marken oder eingetragene Marken von Oracle und/oder seinen Tochtergesellschaften.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[],[],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)"]]