MaterialCardView crashes with material:1.1.0

后端 未结 7 1717
青春惊慌失措
青春惊慌失措 2021-01-01 12:15

I am using MaterialCardView as my cardview layout. Now, Android-studio started showing me that instead of current implementation \"com.google.android.mat

7条回答
  •  走了就别回头了
    2021-01-01 12:34

    The error is in the stacktrace:

    Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant).

    With the version 1.1.0 you have to inherit from a Theme.MaterialComponents.

    Change your app theme to

    
    

提交回复
热议问题