Migrate an existing project to AndroidX from support libraries

Sagar Begale
3 min readJun 5, 2019

AndroidX is an open-source project by Google which provides a major improvement to the original Android Support Library. AndroidX is intended to replace the Support Library. Like support library, AndroidX is shipped independently from the Android OS and provides backward-compatibility across Android releases. The re-designed package structure is to encourage smaller and more focused libraries.

AndroidX provides advantages over support library:

  • Some support libraries (containing component and packages for backward compatibility) are named v7 even though the minimal SDK level supported is 14, the new naming,androidxmakes it clear to understand the division between APIs bundled with platform and the libraries for app developers which are used on different versions of Android. The Support Library packages have been mapped into corresponding androidx.* packages.
  • Unlike the Support Library, AndroidX packages are separately maintained and updated. AndroidX libraries can be updated independently in the project.
  • All new Support Library development will be implemented in the AndroidX library. Including the maintenance of original Support Library artifacts and introduction of new Jetpack components.

Migrating existing project:

--

--