java.lang.IllegalArgumentException: AppCompat does not support the current theme features

Solution 1:

alternative to @sbaar's answer,

keep windowActionBar to false and add windowNoTitleas well and set it to true.

ie

   <item name="windowActionBar">false</item>
   <item name="windowNoTitle">true</item>

Solution 2:

Remove

<item name="windowActionBar">false</item>

from your theme, then make sure you are inheriting from a .NoActionBar Theme, then set your toolbar like normal.

Solution 3:

Make sure that your theme is child from Theme.AppCompat.NoActionBar, then in styles.xml:

<style name="MyMaterialTheme" parent="Theme.AppCompat.NoActionBar">
        <item name="windowNoTitle">true</item>
        ...
</style>

Btw, it's a new issue for Support Library 22.1.

Solution 4:

Check if you call setContentView() after super.onCreate(), and not before. This helped in my case.

Solution 5:

Use this parent in Style.xml parent="Theme.AppCompat.Light.NoActionBar"