Search code examples
androidandroid-drawable

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


I downloaded an icon from google Material.io. while trying to build my project after integrating it, I ran into the error that says: Can't process attribute android:fillColor="@android:color/white"

Here is a screenshot: Can't process attribute android:fillColor="@android:color/white"


Solution

  • 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