Programming question & answer

Fix Duplicate Files in APK Build.gradle Issue - RRutors

RRTutors community answer Published Jan 7, 2020

Answer

First Recheck your build.gradle if there any duplicate dependencies added

if yes, remove those  rebuild application

if not 
add below lines of code 

android {
    packagingOptions {
        exclude ‘META-INF/LICENSE.txt’
        exclude ‘META-INF/NOTICE.txt’
    }
}