In my mind, androidx.* is optional for an Android project, I find that androidx.* is necessary when I update to Android Studio to 3.4.2.
See the Image. So androidx.* will be standard, right?
Image
AndroidX
is a major improvement to the original Android Support Library. Like the Support Library, AndroidX ships separately from the Android OS and provides backwards-compatibility across Android releases. androidX
fully replaces the Support Library by providing feature parity and new libraries.
Here
If your app currently depends on the original Design Support Library, you can make use of the Refactor to androidX
option provided by Android Studio. Doing so will update your app’s dependencies and code to use the newly packaged androidx.
New Design support library
requires andriodX
migration too! You should consider using androidX for your future projects! Here
Add the library to the in your build.gradle
(app-level) dependencies section:
implementation 'com.google.android.material:material:version' Latest Version