Stay organized with collections
Save and categorize content based on your preferences.
The androidx namespace comprises the Android Jetpack libraries. Like the Support Library, libraries in the androidx namespace ship separately from the Android platform and provide backward compatibility across Android releases.
AndroidX is a major improvement to the original Android
Support Library, which is no longer maintained.
androidx packages fully replace the Support Library by providing feature parity and new libraries.
In addition, AndroidX includes the following features:
All packages in AndroidX live in a consistent namespace starting with the
string androidx. The Support Library packages have been mapped into
corresponding androidx.* packages. For a full mapping of all the old classes
and build artifacts to the new ones, see the
Package Refactoring page.
Unlike the Support Library, androidx packages are separately maintained
and updated. The androidx packages use strict Semantic Versioning,
starting with version 1.0.0. You can update AndroidX libraries in your project
independently.
Version 28.0.0
is the last release of the Support Library.
There will be no more android.support library releases.
All new feature development will be in the androidx namespace.
If you want to use androidx-namespaced libraries in a new project,
you need to set the compile SDK to Android 9.0 (API level 28) or higher and set
both of the following Android Gradle plugin flags to true in your
gradle.properties file.
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.
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.
Learn more about components on the Jetpack home page.
For more information about the package refactoring from the Support Library
to androidx,
see the blog post
on that topic.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-06-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-06-08 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."]]