Androidx使用FloatingActionButton依赖爆红,解决Androidx不能使用FloatingActionButton

第一步:
添加依赖:

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

第二步:
xml文件中这样写就可以了

 

参考:
https://stackoverflow.com/questions/30576450/floatingactionbutton-example-with-support-library

你可能感兴趣的:(Android-Bug,android,studio)