This Activity already has an action bar supplied by the window decor

I think you’re developing for Android Lollipop, but anyway include this line: to your theme declaration inside of your app/src/main/res/values/styles.xml. Also, if you’re using AppCompatActivity support library of version 22.1 or greater, add this line: Your theme declaration may look like this after all these additions:

This Activity already has an action bar supplied by the window decor?

I am making an Android app using Toolbar with Custom style but when i’m running the app, i’m getting the following error: Caused by: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead. Styles.xml … Read more