More than one file was found with OS independent path 'META-INF/androidx.legacy_legacy-support-core-utils.version'
Build > Clean Project helped me.
Add a new exclude line with the path that is causing the error : exclude 'META-INF/androidx.legacy_legacy-support-core-utils.version'