his component requires that you specify a valid TextAppearance attribute. Update your app theme to inherit from Theme code example

Example: The style on this component requires your app theme to be Theme.MaterialComponents

<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorAccent</item>
        <item name="colorAccent">@color/colorPrimaryDark</item>
</style>

Tags:

Misc Example