Error inflating class android.support.design.widget.FloatingActionButton

后端 未结 12 1738
清歌不尽
清歌不尽 2021-02-05 01:24

My app crashed because

Error inflating class android.support.design.widget.FloatingActionButton

This is my code in the XML



        
12条回答
  •  再見小時候
    2021-02-05 01:50

    Add in

    build.gradle(:app)

     implementation 'com.google.android.material:material:1.2.0'
    

    Use this in your XML

    
    

提交回复
热议问题