I develop own library module where I use Snackbar
.
Here is my Gradle file:
apply plugin: \'com.android.library\'
android {
compileSdkV
To get the the Snackbar into our Android proyect just add the reference of support:design library inside the build.gradle
file :
dependencies {
...
...
compile 'com.android.support:design:25.0.1'
}
Be sure to sync your project with the gradle files , this will fix your problem.
Your error message is:
error: package android.support.design.R does not exist
be sure to have the correct import:
import android.support.design.widget.Snackbar;