1. Enable the use of support library for vector drawables in build.gradle file (app level):
vectorDrawables.useSupportLibrary = true
2. Use app:srcCompat in the image tag in the layout file:
app:srcCompat="@drawable/empty_dice"
3. You’ll also need to add the namespace to the root of the layout:
xmlns:app="http://schemas.android.com/apk/res-auto"
Comments
Post a Comment