build.gradle (Module: app)

dependencies {
    ...
    implementation 'com.google.android.material:material:1.1.0'
    ...
}
Snackbar.make(view, "Here's a Snackbar", Snackbar.LENGTH_LONG)
	.setAction("Action", null)
	.show()