AQ Hassaan
AQ Hassaan

Reputation: 43

cannot resolve floatinbuttonAction and snackbar

I'm very new to the android development. I imported my friend's project in my android studio and I'm having this trouble right now that I'm unable to sort out on my own. Please help me fix it.can't resolve FloatingActionButn and Snackbar

Upvotes: 0

Views: 763

Answers (3)

Jéwôm'
Jéwôm'

Reputation: 3971

You have to add the design support library in your build.gradle :

implementation 'com.android.support:design:25.3.1'

Upvotes: 1

Ferdous Ahamed
Ferdous Ahamed

Reputation: 21736

Package android.support.design.widget.FloatingActionButton and android.support.design.widget.Snackbar lies under design-support library. You have to add design-support library into your project.

Add below dependencies into your app modules build.gradle file and Sync .

dependencies {
    ............
    ................

    compile 'com.android.support:design:25.3.1'
}

Hope this will help

Upvotes: 0

jagapathi
jagapathi

Reputation: 1645

FloatingActionButton and snackbar are components of design LIB

Add this in your app gradle file

compile 'com.android.support:design:23.1.1'

Upvotes: 0

Related Questions