'java.util.zip.ZipException: invalid distance to far back

enter image description here

I have an application that when I try it, whether on the player or through the mobile it works properly without any error, but when I export the application in APK format, this error message appears! Please help please no matter

Caused by: java.util.zip.ZipException: invalid distance too far back

Execution failed for task ':app:mergeExtDexRelaseRelease'.
 A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source