AndroidX and Android Jetpack

Viewed 588

As per my knowledge Androidx is itself a library, and android jetpack is a set of libraries. Does androidx is a library in Android jetpack ? Iam little bit confused about androidx and android jetpack. Can anyone explain me clearly

2 Answers

As per the AndroidX FAQ doc:

How are androidx and AndroidX related to Jetpack?

They are all the same thing! In a sentence, androidx is the packaging and AndroidX is the development workflow for all components in Jetpack. Jetpack is the external branding for libraries within androidx.

In more detail, Jetpack is the external branding for the set of components, tools, and guidance that improve the developer experience on Android. AndroidX is the open-source development project that defines the workflow, versioning, and release policies for ALL libraries included in Jetpack. All libraries within the androidx Java package follow a consistent set of API design guidelines, conform to SemVer and alpha/beta revision cycles, and use the Android issue tracker for bugs and feature requests.

androidx.* has been replacing the old android.support.* and android.arch.* set of libraries. It also includes support to all the older libraries (except for the deprecated one, of course). Android Jetpack is a suite of tools developed by Google to write applications that follow certain standards as well as ease the job of developers like us. Part of the Android Jetpack "universe" is Room (a library that facilitates the writing of an SQL database), DataStore (currently still in beta, but soon it will replace SharedPreference for the persistence of settings when for example we set Dark mode in the app, we close it, and we expect to still have Dark mode ON when we open it back), LiveData (for asynchronous data stream), ......and others. All this goes hand in hand with the continuous development of the Kotlin language and the never-ending usefulness of COROUTINES, just to mention one. I hope this overview was of use to the readers.

Related