0

I have got the the error "Error inflating class android.support.design.chip.Chip. This component requires that you specify a valid TextAppearance attribute. Update your app theme to inherit from Theme.MaterialComponents (or a descendant)." after updated to support library version 28.0.0-rc02. The Application was working properly with previous support library version 28.0.0-alpha1.

Currently, I am using Theme.AppCompat.Light.NoActionBar and should I change to Theme.MaterialComponents according to the error message or is there anyway to solve?

enter image description here

enter image description here

Pankaj Kumar
  • 81,967
  • 29
  • 167
  • 186
BomberBus
  • 1,195
  • 3
  • 15
  • 29

1 Answers1

3

After I updated the theme to Theme.MaterialComponents.Light.NoActionBar, the error is gone. Thanks @ianhanniballake.

I haven't tried before because I misunderstood the following sentence from the doc (between dependencies and themes).

Note: You should not use the com.android.support and com.google.android.material dependencies in your app at the same time.

BomberBus
  • 1,195
  • 3
  • 15
  • 29