Notification bar drawables not loading under API 17
Description
Application crashes during playback. Appears to be a backwards compatibility issue loading resources defined in the selector.
List of resources:
W/ImageView( 1627): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_notif_previous_disabled.xml from drawable resource ID #0x7f0801df
W/ImageView( 1627): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_notif_next_disabled.xml from drawable resource ID #0x7f0801dc
W/ImageView( 1627): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_notif_rewind_10_disabled.xml from drawable resource ID #0x7f0801e3
W/ImageView( 1627): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_notif_forward_10_disabled.xml from drawable resource ID #0x7f0801d7
Stack Trace:
W/ImageView( 1627): android.content.res.Resources$NotFoundException: File res/drawable/ic_notif_previous.xml from drawable resource ID #0x7f0801de
W/ImageView( 1627): at android.content.res.Resources.loadDrawable(Resources.java:1958)
W/ImageView( 1627): at android.content.res.Resources.getDrawable(Resources.java:660)
W/ImageView( 1627): at android.widget.ImageView.resolveUri(ImageView.java:616)
W/ImageView( 1627): at android.widget.ImageView.setImageResource(ImageView.java:349)
W/ImageView( 1627): at java.lang.reflect.Method.invokeNative(Native Method)
W/ImageView( 1627): at java.lang.reflect.Method.invoke(Method.java:511)
W/ImageView( 1627): at android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:1146)
W/ImageView( 1627): at android.widget.RemoteViews.performApply(RemoteViews.java:2304)
W/ImageView( 1627): at android.widget.RemoteViews.apply(RemoteViews.java:2263)
W/ImageView( 1627): at android.widget.RemoteViews$ViewGroupAction.apply(RemoteViews.java:1222)
W/ImageView( 1627): at android.widget.RemoteViews.performApply(RemoteViews.java:2304)
W/ImageView( 1627): at android.widget.RemoteViews.apply(RemoteViews.java:2263)
W/ImageView( 1627): at com.android.systemui.statusbar.BaseStatusBar.inflateViews(BaseStatusBar.java:747)
W/ImageView( 1627): at com.android.systemui.statusbar.BaseStatusBar.addNotificationViews(BaseStatusBar.java:926)
W/ImageView( 1627): at com.android.systemui.statusbar.phone.PhoneStatusBar.addNotification(PhoneStatusBar.java:858)
W/ImageView( 1627): at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:267)
W/ImageView( 1627): at android.os.Handler.dispatchMessage(Handler.java:99)
W/ImageView( 1627): at android.os.Looper.loop(Looper.java:137)
W/ImageView( 1627): at android.app.ActivityThread.main(ActivityThread.java:5041)
W/ImageView( 1627): at java.lang.reflect.Method.invokeNative(Native Method)
W/ImageView( 1627): at java.lang.reflect.Method.invoke(Method.java:511)
W/ImageView( 1627): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
W/ImageView( 1627): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
W/ImageView( 1627): at dalvik.system.NativeStart.main(Native Method)
W/ImageView( 1627): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_notif_previous_disabled.xml from drawable resource ID #0x7f0801df
W/ImageView( 1627): at android.content.res.Resources.loadDrawable(Resources.java:1958)
W/ImageView( 1627): at android.content.res.Resources.getDrawable(Resources.java:660)
W/ImageView( 1627): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)
W/ImageView( 1627): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:885)
W/ImageView( 1627): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:822)
W/ImageView( 1627): at android.content.res.Resources.loadDrawable(Resources.java:1955)
W/ImageView( 1627): ... 23 more
W/ImageView( 1627): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector
W/ImageView( 1627): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881)
W/ImageView( 1627): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:822)
W/ImageView( 1627): at android.content.res.Resources.loadDrawable(Resources.java:1955)
W/ImageView( 1627): ... 28 more
Context
App version
3.5.0
Android version
4.2
Device model
Pixel 2 API 17 Emulator
App mode
Smartphone
Edited by Robert Stone