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

Because android:backgroundTint doesn't work below android API 21, so you need to use app:backgroundTint instead.


Use

app:backgroundTint

in stead of

android:backgroundTint

Hope it will work.


Tried your code, the problem is with the 23.4.0 library.

Upgrade to 24.+ , there's no error in that lib.

For example :

implementation 'com.android.support:appcompat-v7:24.2.1' // appcompat library
implementation 'com.android.support:design:24.2.1'

You need to change the compile version to 24 too.

compileSdkVersion 24