Sudden error when Generating Signed APK

I have no idea why this error suddenly is happening and I don’t know where to start to look for a solution. Any help explaining what is going on and/or helping to resolve it would be appreciated.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:packageStaging’.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Entry name ‘META-INF/androidx.hilt_hilt-common.version’ collided