The Android Support Library: what it did and how to move to AndroidX

The Support Library was a set of Google libraries, packaged as android.support.*, that let apps use newer Android APIs on older versions of the platform. It also shipped widgets that weren’t in the framework at all, like RecyclerView. You will still see it in older projects, tutorials and Stack Overflow answers, so it’s worth knowing how to translate it.
What it provided
Section titled “What it provided”- Backward-compatible versions of framework classes. For example, the support
Fragmentworked on devices older than Android 3.0, andActivityCompatwrapped the runtime-permissions API added in Android 6.0 so the same call worked everywhere. - Widgets and helpers not in the framework, such as
RecyclerView,CardView,ViewPager,DrawerLayoutand the Palette color-extraction API. - Build and tooling helpers, such as
support-annotationsfor lint checks andmultidexfor apps over the 65,536-method limit.
The compatibility classes degrade gracefully: on an old device they may not provide every feature of the newest platform API, so you still need to test on the oldest API level you support.
Package names and versions
Section titled “Package names and versions”Artifacts carried suffixes like -v4, -v7 and -v13, which originally meant the minimum API level the library supported. From release 26.0.0 (July 2017) the minimum for most packages became API level 14, so the suffix stopped meaning anything. The library’s version number (25.x, 27.x, 28.0.0) tracked the platform API it was built against, and all Support Library artifacts in a project had to use the same version. AndroidX dropped both conventions: each library has its own package under androidx.* and its own semantic version.
Support Library to AndroidX mappings
Section titled “Support Library to AndroidX mappings”These are the modules people used most. Class names stayed the same; only the package and Maven coordinates changed.
| Support Library artifact | AndroidX artifact |
|---|---|
com.android.support:appcompat-v7 | androidx.appcompat:appcompat |
com.android.support:design | com.google.android.material:material |
com.android.support:recyclerview-v7 | androidx.recyclerview:recyclerview |
com.android.support:cardview-v7 | androidx.cardview:cardview |
com.android.support:palette-v7 | androidx.palette:palette |
com.android.support:support-compat | androidx.core:core |
com.android.support:support-fragment | androidx.fragment:fragment |
com.android.support.constraint:constraint-layout | androidx.constraintlayout:constraintlayout |
The design library is the odd one out: it became Material Components for Android, which is where FloatingActionButton, TextInputLayout and Snackbar live now. Google publishes the full artifact mapping and class mapping tables.
A support-era dependency block such as:
implementation 'com.android.support:appcompat-v7:28.0.0'implementation 'com.android.support:design:28.0.0'becomes, in a current build.gradle.kts:
dependencies { implementation("androidx.appcompat:appcompat:1.8.0") implementation("com.google.android.material:material:1.14.0")}Those were the latest stable releases when this post was updated; check the AndroidX versions page for newer ones.
Migrating an old project
Section titled “Migrating an old project”- Update to Support Library 28.0.0 first. AndroidX 1.0.0 artifacts are binary-equivalent to 28.0.0, so this isolates API changes from the package rename.
- Work on a separate branch and avoid unrelated refactoring during the migration.
- Run Refactor > Migrate to AndroidX in Android Studio. It rewrites imports, XML layouts and Gradle dependencies, and sets the AndroidX flags in
gradle.properties. - Check whether you need Jetifier.
android.enableJetifier=truerewrites third-party libraries that still referenceandroid.support.*classes at build time. By late 2021 most libraries supported AndroidX natively, and Jetifier slows builds, so Google advises leaving it off unless a dependency needs it. Android Studio’s Build Analyzer has a check that tells you whether a project still does.
android.useAndroidX=true# Only if a dependency still uses android.support.*# android.enableJetifier=trueBeyond the old Support Library
Section titled “Beyond the old Support Library”Once you’re on AndroidX, the libraries that grew out of the Support Library (Fragment, RecyclerView, AppCompat) are updated independently. For new UI, Google’s recommended toolkit is now Jetpack Compose rather than View-based widgets, though AppCompat and Material Components remain the standard for View-based apps.
Further reading
Section titled “Further reading”© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)