The build error is occuring while building a signed debug-apk.
Execution failed for task ':app:packageLiteDebug'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Unable to find EOCD signature
The build error is occuring while building a signed debug-apk.
Execution failed for task ':app:packageLiteDebug'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Unable to find EOCD signature
Copyright © 2021 Jogjafile Inc.
Solution:
Clean and rebuild the project: This error can sometimes be caused by a corrupted build output file. Try cleaning your project and rebuilding it to see if this resolves the issue.
In my case, it's the debug apk in the build folder which was corrupted, so deleted the whole build folder and created a signed debug apk. It builded it perfectly.