android x design dependency
Asked Answered
C

6

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

Caffrey answered 23/8, 2019 at 3:34 Comment(2)
use implementation 'com.google.android.material:material:1.0.0'Call
Great it works! Thank youCaffrey
B
54

try this:

implementation 'com.google.android.material:material:1.0.0'
Boarder answered 23/8, 2019 at 3:59 Comment(0)
B
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.

Bosquet answered 23/8, 2019 at 4:8 Comment(0)
J
3

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

Just copy paste this one in to your dependencies.

Jacquenette answered 4/1, 2020 at 17:35 Comment(0)
W
2

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

Winze answered 23/8, 2019 at 4:25 Comment(0)
S
0

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

Try this latest dependency.

Shonna answered 21/5, 2020 at 18:51 Comment(0)
M
0

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

Merat answered 2/9, 2020 at 21:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.