I am using svg for icons for ImageView
it can be given using app:srcCompat
But when i want to use it for Buttons
as selector the app crashes with resource not found exception for devices with api below 21
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/button_enabled" android:state_enabled="true" />
<item android:drawable="@drawable/button_disabled" android:state_enabled="false" />
</selector>
Where button_enabled and button_disabled are both svg