java.lang.IllegalArgumentException: This component requires that you specify a valid android:textAppearance attribute

后端 未结 9 1662
囚心锁ツ
囚心锁ツ 2020-12-03 09:34

I have a com.google.android.material.button.MaterialButton component in one of my layout file and I get this error when I am using the latest version of the Material Compone

9条回答
  •  余生分开走
    2020-12-03 10:12

    if your theme does not extend MaterialComponents theme, and you want to keep the AppCompat theme, use a bridge theme, that would allow you to use material components keeping the AppCompat theme.

    change your existing theme from:

     
    

    to this:

    
    

提交回复
热议问题