Vector assets Resources NotFoundException on SamsungĀ device

Error message in Samsung s4 when ImageView changes image src vector asset in my custom view(on other devices worked fine):

Fatal Exception: android.content.res.Resources$NotFoundException: File res/drawable/ic_menu.xml from drawable resource ID #0x7f0f2323. If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way.

Fixing:

On Application class in onCreate method add:

AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);

For ImageView changing drawable use

imageView.setImageDrawable(ActivityCompat.getDrawable(getContext(), resId));