How to use com.google.android.material Objects and change button background

I have a problem I want to both change Buttons color and use com.google.android.material Objects I found out that when I change the line in themes: