Migrate to AndroidX

AndroidX replaces the original support library APIs with packages in the androidx namespace. Only the package and Maven artifact names changed; class, method, and field names did not change.

Prerequisites

Before you migrate, bring your app up to date. We recommend updating your project to use the final version of the support library: version 28.0.0. This is because AndroidX artifacts with version 1.0.0 are binary equivalent to the Support Library 28.0.0 artifacts.

Mappings

If you run into issues because your project hasn't fully migrated to AndroidX, refer to these tables to determine the proper mappings from the support library to the corresponding AndroidX artifacts and classes:

For the latest versions of the Jetpack libraries, see the versions page.

Additional resources

To learn more about migrating your code to AndroidX, see the following additional resources:

Blog posts

Videos