I am getting this error while I am building APK.
Cause 1: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while
search your code you must be referring to color in color.xml in an xml drawable. go and give hex code instead of referencing....
color.xml
Example: in drawable.xml you must have called
drawable.xml
android:fillColor="@color/blue"
change it to android:fillColor="#ffaacc" hope it solve your problem...
android:fillColor="#ffaacc"