Using Material Button gives ClassNotFound runtime error

前端 未结 6 2148
温柔的废话
温柔的废话 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条回答
  •  Happy的楠姐
    2020-12-30 01:12

    As it suggest HERE you have to add a dependency in your build.gradle:

    implementation 'com.google.android.material:material:1.0.0-beta01'
    

    Or if you already use google support design library you must change your app theme to inherit from a Material Components theme