Android: getting Resources$NotFoundException for abc_ic_ab_back_material

The answer to this turned out to be buried at the bottom of this guide:

https://medium.com/@chrisbanes/appcompat-v23-2-age-of-the-vectors-91cbafa87c88#.xucjbsts0

It turns out that all you need to add this line in at the beginning of the activity that will use the resource:

static {
        AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
    }

Please make sure you are using AppCompatActivity instead Activity. If you’re using AppCompat’s theme, then you also need to use it’s Activity.

Leave a Comment