1

I got some error in build.gradle file like below:

enter image description here

What to do next?

Gryu
  • 2,102
  • 2
  • 16
  • 29
SATYA
  • 11
  • 1
  • 6

2 Answers2

0

remove that dependency androidx.legacy:legacy-support-v4 and use this dependency:

implementation 'androidx.legacy:legacy-support-v4:1.0.0'

And for rest of the error recycleview and cardview:(remove that two dependency and add following for two)

remove this-->:Failed to resolve: com.google.android.material:material-rc01:1.0.0

use the dependency:(this dependency use for both recycleview and cardview ,etc)

    implementation 'com.google.android.material:material:1.1.0'
Wini
  • 1,906
  • 1
  • 12
  • 31
0

There is version available 1.0.0 for androidx.legacy:legacy-support-v4.

so do it in your gradle -

implementation "androidx.legacy:legacy-support-v4:1.0.0"

If you are migrating to AndroidX then see this answer.

For the new question

Check maven page.

You can use stable version -

implementation "com.google.android.material:material:1.0.0"

Khemraj Sharma
  • 57,232
  • 27
  • 203
  • 212