26

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

Basi
  • 3,009
  • 23
  • 28
Ruchira Swarnapriya
  • 879
  • 2
  • 11
  • 23

6 Answers6

53

try this:

implementation 'com.google.android.material:material:1.0.0'
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
7

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.

satuser
  • 766
  • 8
  • 17
3

implementation 'com.google.android.material:material:1.2.0-alpha02'

Just copy paste this one in to your dependencies.

Satan Pandeya
  • 3,747
  • 4
  • 27
  • 53
Exutic
  • 91
  • 4
2

There is no design library in androidx. It uses material library. Get more info at this

Jawad Ahmed
  • 306
  • 1
  • 5
  • 9
0

implementation 'com.google.android.material:material:1.2.0-alpha06'

Try this latest dependency.

0

Try this: 'com.google.android.material:material-rc01'

Taslim Oseni
  • 6,086
  • 10
  • 44
  • 69