Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android x design dependency

Tags:

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

like image 417
Ruchira Swarnapriya Avatar asked Aug 23 '19 03:08

Ruchira Swarnapriya


People also ask

What is Android dependency?

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.

What is AndroidX and Appcompat?

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.

What is the difference between Android and AndroidX?

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.


2 Answers

try this:

implementation 'com.google.android.material:material:1.0.0' 
like image 165
Poyyamozhi Ramakrishnan Avatar answered Sep 20 '22 14:09

Poyyamozhi Ramakrishnan


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.

like image 35
satuser Avatar answered Sep 20 '22 14:09

satuser