petehallw petehallw - 1 year ago 510
Android Question

Failed to find style 'listMenuViewStyle' in Android Studio

I'm trying to add icons to my menu items in my android application. However the layout preview window in Android studio is displaying the error:

Failed to find style 'listMenuViewStyle' in current theme

I'm using the Holo.Light theme, and have tried a number of other themes with no luck. My layout xml is as follows:

<menu xmlns:android=""

tools:context="" >

<item android:id="@+id/action_settings"
android:showAsAction="never" />

<item android:id="@+id/action_about"
android:showAsAction="never" />


What am I missing here? Thanks!

Answer Source

The attribute listMenuViewStyle was introduced with api level 24. Make sure you use compileSdkVersion 24 or above.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download