How can I import androidx design dependency
I have tried to import : implementation 'androidx.design:design:1.0.2'
app compact version is : implementation 'androidx.appcompat:appcompat:1.0.2'
I have got this error -
ERROR: Failed to resolve: androidx.design:design:1.0.2
In Android Studio, dependencies allows us to include external library or local jar files or other library modules in our Android project. For example: Suppose I want to show some images in ImageView. But I'm using Glide Library to enhance the smoothness of application.
appcompat:appcompat. Official Description: The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.
AndroidX is a major improvement to the original Android Support Library, which is no longer maintained. androidx packages fully replace the Support Library by providing feature parity and new libraries.
try this:
implementation 'com.google.android.material:material:1.0.0'
To know equivalent for new Androidx Artifacts from old build artifacts, please refer the below link
https://developer.android.com/jetpack/androidx/migrate/artifact-mappings
note: answer by Poyyamozhi Ramakrishnan is correct and I posted my answer for better understanding.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With