makovkastar / FloatingActionButton

[DEPRECATED] Android floating action button
MIT License
4.01k stars 819 forks source link

Can not resolve symbol FloatingActionButton #209

Open PrafullaKumarSahu opened 8 years ago

PrafullaKumarSahu commented 8 years ago

I am unable too import FloatingActionButton and Snackbar class successfully, Can anyone guide me ?

import android.app.ListActivity;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
opreani commented 6 years ago

Add this to your build gradle app module - implementation 'com.android.support:design:27.1.1'(or any newer version)