I was studying the Android Material Design using Kotlin and everything was going fine until I tried to use the android.support.design.widget.FloatingActionButton.
Go to build.gradle(app) and add this in dependency:
build.gradle(app)
implementation 'com.android.support:appcompat-v7:28.0.0'
Right now my compileSdkVersion is 28, so it is 28.0.0.
compileSdkVersion
28
28.0.0
Try and change according to that.