InflateException with FloatingActionButton from Official Design Library

前端 未结 7 1554
谎友^
谎友^ 2020-11-27 04:54

I am getting a bug using the official FloatingActionButton from Google\'s support design library.

Here is my LogCat.

android.view.Infla         


        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 05:08

    Another way to get this message is if you accidentally specified different versions of the appcompat library in different modules. This is likely to happen when you create a new module, since Android Studio defaults to the most current version.

    For a tidy way of managing this in multi-module projects, see: In Gradle, how do I declare common dependencies in a single place?

提交回复
热议问题