Android – Enable support Library for vector drawables

Open build.gradle(app level) and add:

vectorDrawables.useSupportLibrary = true

, <span>Android – Enable support Library for vector drawables</span>, KandZ

Now Sync project with Gradle Files

Add the namespace to the root of the layout

xmlns:app="http://schemas.android.com/apk/res-auto"

, <span>Android – Enable support Library for vector drawables</span>, KandZ

In the image tag, you have to use app:srcCompat

app:srcCompat="@drawable/myDrawable"

, <span>Android – Enable support Library for vector drawables</span>, KandZ

 

 

33260cookie-checkAndroid – Enable support Library for vector drawablesAndroid – Enable support Library for vector drawables

Related posts