I am developing an application in Android Studio but at the time of executing it by the emulator I am getting the following error:
Error: can not find symbol variable fab
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(
view,
"Replace with your own action",
Snackbar.LENGTH_LONG
).setAction("Action", null).show();
}
});