Question Detail

Why am i getting this error plz help!! Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.

6 years ago Views 1788 Visit Post Reply

Toolbar toolbar = (Toolbar) findViewById(;
setTitle("Edit Account Details");


I am getting this error for the action bar

Thread Reply

Hemant Sharma

- 6 years ago

This error occurs by many mistakes 
i have listed below some Situations : 

1.) If you have not created Toolbar in your layout

2.) If you are using


Theme and try to get Actionbar.

3) if you have not

extends AppCompatActivity