Issue
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
Solution
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. HereIf 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
requiresandriodX
migration too! You should consider using androidX for your future projects! HereAdd the library to the in your
build.gradle
(app-level) dependencies section:implementation 'com.google.android.material:material:version' Latest Version
Answered By - Sumit Shukla
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.