Can't process attribute android:fillColor="@android:color/white"

In the app build.gradle add the following line within the android section:

defaultConfig{
    vectorDrawables.useSupportLibrary = true
}

Check This For Further Detail :Vector drawables overview


Open the drawable you downloaded and replace android:fillColor="@android:color/white" with android:fillColor="#ffffff". In vector drawables the fillColor attribute must be set explicitly and not reference other resources


There are two ways to fix this.

One quick option is to go to the problematic XML file and change android:fillColor="@android:color/white" to android:fillColor="#FFFFFF". The error would disappear immediately. However, this problem would still recur if you have any other file with a similar line in the future.

Here's permanent solution:

Go to your build.gradle file and add this:

defaultConfig{
    vectorDrawables.useSupportLibrary = true
}

Sync and the error would disappear immediately.