Below are my dependencies
implementation \'com.google.android.material:material:1.0.0\'
implementation \'androidx.appcompat:appcompat:1.0.2\'
implementation
Extend your base app Theme from Material Components Bridge theme. It extends AppCompat theme, but add all necessary stuff.
Both
Theme.MaterialComponentsandTheme.MaterialComponents.Lighthave.Bridgethemes:
Theme.MaterialComponents.Bridge
Theme.MaterialComponents.Light.Bridge
Theme.MaterialComponents.NoActionBar.Bridge
Theme.MaterialComponents.Light.NoActionBar.Bridge
Theme.MaterialComponents.Light.DarkActionBar.Bridge
If allows you to keep using latest version of the library, but avoid a lot of UI issues, caused by migration to pure Material Component theme
https://material.io/develop/android/docs/getting-started/#bridge-themes