Error Can not process attribute android: fillColor

1

Why is this error ?, I do not see any detail in the logcat or anything, since the error occurs before you start the app.

This is the error:

Can't process attribute android:fillColor="@color/colorIcon": references to other resources are not supported by build-time PNG generation.

I hope you can help me, thank you very much!

    
asked by Matías Nicolás Núñez Rivas 05.07.2018 в 20:12
source

1 answer

1

The error indicates in Spanish:

  

Can not process the android attribute: fillColor="@ color / colorIcon":   References to other resources are not compatible with generation   of PNG at creation time

The problem here is that you are using vector graphics , instead of images .jpg, .png, etc. and these are not supported by your application.

Add in your build.gradle the support to use vector graphics

vectorDrawables.useSupportLibrary = true

define it this way:

android {
    ...
    ...
    defaultConfig {
        ...
        ...
        vectorDrawables.useSupportLibrary = true
        ...
    }
}
    
answered by 05.07.2018 / 23:50
source