I\'m getting a Resources$notfoundexception on older (pre-L) devices. I\'m including the full stacktrace below.
My version of the support library is the latest (24.1
I was using the application context when calling ContextCompat.getDrawable()
which also crashes the app with Resources$NotFoundException
and now the following message even though everything else was set up just fine:
If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info.
All I had to do was to change to the view's Context
. :)