0

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

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
AQ Hassaan
  • 43
  • 4

3 Answers3

1

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

implementation 'com.android.support:design:25.3.1'
Jéwôm'
  • 3,753
  • 5
  • 40
  • 73
0

FloatingActionButton and snackbar are components of design LIB

Add this in your app gradle file

compile 'com.android.support:design:23.1.1'
jagapathi
  • 1,635
  • 1
  • 19
  • 32
0

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

Jéwôm'
  • 3,753
  • 5
  • 40
  • 73
Ferdous Ahamed
  • 21,438
  • 5
  • 52
  • 61