Android trying to load a resource that is not declared

77 Views Asked by At

I have several crash reports with the following error:

Caused by android.content.res.Resources$NotFoundException: File res/drawable/ic_keyboard_arrow_right_black_24dp.xml from drawable resource ID #0x7f07010b
   at android.content.res.Resources.loadDrawable + 2096(Resources.java:2096)

What baffles me is that the app only uses PNG images. There isn't any reference to ic_keyboard_arrow_right_black_24dp.xml in the code, only to ic_keyboard_arrow_right_black_24dp.png. The error only happens in Android 4.

Does anyone have a clue about what may be causing the error?

1

There are 1 best solutions below

0
Gabe Sechan On

Its likely a library loading it. Its probably trying to load the icon here: https://github.com/google/material-design-icons/blob/master/hardware/drawable-anydpi-v21/ic_keyboard_arrow_right_black_24dp.xml

If you don't want to find and fix the library, including that file in your build should fix it.