Skip to content Skip to sidebar Skip to footer

Appcompat-v7:25.3.0 : AppCompat Does Not Support The Current Theme Features: { WindowActionBar: False, WindowActionBarOverlay: False, . }

I am getting the following error while running and the activity does not start. The error is showing at setContentView(R.layout.activity_main); Please help. I am using the followin

Solution 1:

Android developers have made AppCompat more restricted about windowNoTitle flag as they were introduces AppCompatDialogs which are highly dependent on windowNoTitle flag - in version of 22.1.0.

So to fix your problem use your theme parent to - Theme.AppCompat.NoActionBar

If your requrement doesn't suite that, use separate theme where needed -

For example -

<style name="MyTheme" parent="Theme.AppCompat">
    ...
</style>

<style name="MyTheme.NoActionBar">
    <!-- both your properties are there -->
    <!-- Remove other ones.. i.e. windowActionBarOverlay and all -->
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>

Reference - Android developer's blog


Solution 2:

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

set this only in your theme found in styles.xml and delete this.

android:windowIsFloating: false
windowActionBarOverlay: false
windowActionBar: false

Post a Comment for "Appcompat-v7:25.3.0 : AppCompat Does Not Support The Current Theme Features: { WindowActionBar: False, WindowActionBarOverlay: False, . }"