Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse

Daniel Kvist picture Daniel Kvist · Feb 27, 2015 · Viewed 21.9k times · Source

I'm creating an Android app in Android Studio. When I open the layout editor, I see that gray "popup window" on top of the layout, which says that it

Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse.

This happens when I change the "rendering version" to API 15 (Android 4.0.3).
It worked a minute ago, but when I switched back to the layout, I just got this error.

Edit: I use the AppCompat library.
The theme is defined like this

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar" />

The app works fine when I run it, but doesn't render correctly (at least it's giving me the error) in the editor.

I would be glad if someone could help me with this. Thanks!

Answer

futu picture futu · Mar 4, 2015

This problem occured to me when updating Android Studio to version 1.1.0 and opening an old project without changing anything.

For me only changing the preview's rendering API to 19 or above makes the message disappear.