Using Material Button gives ClassNotFound runtime error

前端 未结 6 2151
温柔的废话
温柔的废话 2020-12-30 00:50

I am in the process of replacing the buttons in my app with Material Buttons using in the XML file and

6条回答
  •  暖寄归人
    2020-12-30 01:16

    When crashing The following message was output to Logcat.

    Caused by: java.lang.IllegalArgumentException: This component requires that you specify a valid TextAppearance attribute. Update your app theme to inherit from Theme.MaterialComponents (or a descendant).

    Therefore, you can also display MaterialButton by adding TextAppearance.

    
    

提交回复
热议问题