Android material chip component crashing app. Unable to inflate xml

前端 未结 4 2006
既然无缘
既然无缘 2020-11-29 08:53

Tried Chip component from both support library
com.google.android.support:design:28.0.0-rc01 and material
com.google.an

4条回答
  •  没有蜡笔的小新
    2020-11-29 09:37

    Update your app theme to inherit from one of these themes:

    Theme.MaterialComponents
    Theme.MaterialComponents.NoActionBar
    Theme.MaterialComponents.Light
    Theme.MaterialComponents.Light.NoActionBar
    Theme.MaterialComponents.Light.DarkActionBar
    

    For example: