-1

I am using Material Chips from the Material Design Component library released by Google for Android. But when I updated the com.google.android.material:material to version 1.0.0-rc01, I have started to get the error in the below line.

app:chipText="@string/chip_morning"

The error that I am getting is attribute chipText not found.

I have tried replacing it with android:text="@string/chip_morning" but still it doesn't work

benvc
  • 14,448
  • 4
  • 33
  • 54
Mehul Kanzariya
  • 888
  • 3
  • 27
  • 58

2 Answers2

1

Use the latest dependency, cause, now you can use android:text xml attribute.

Rajarshi
  • 2,419
  • 3
  • 23
  • 36
0

Instead of 1.0.0-rc01, You should try with

implementation 'com.google.android.material:material:1.0.0-beta01'

Make sure that the repositories section includes Google’s Maven repository google().

allprojects {
    repositories {
      google()
      jcenter()
    }
  }
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198