MichielB MichielB - 4 months ago 34x
Android Question

No resource found that matches the given name (at 'theme' ...)

I'm using Android Studio 2.1 and trying to use a full screen theme without action bar.

I changed this in my manifest, as stated in Using platform styles and themes

- android:theme="@style/AppTheme">
+ android:theme="@android:style/Material.NoActionBar.FullScreen">

However when compiling the app I now get this error message:

Error:(19, 24) No resource found that matches the given name
(at 'theme' with value '@android:style/Material.NoActionBar.FullScreen').

This makes me think I have to somehow include these styles in the resources of my project. But according to the documentation, it should just be a matter of changing the name of the theme, and because the prefix
it would be a standard theme which is already in the platform.

What am I missing?


You style reference lacks Theme. in path. Proper full name is


Also be aware that Android Studio offers code completion also in styles, so you can enter i.e. @android:style/Theme.Ma or @android:style/fulls and press ctrl + Space to see all available matching styles.