Error:Execution failed for task ':app: transformResourcesWithMergeJav aResForDebug'.
> com.android.build.api. transform.TransformException: com.android.builder.packaging. DuplicateFileException: Duplicate files copied in APK META-INF/DEPENDENCIES.
To resolve this exception you must add this code to your build.gradle,just before buildTypes
packagingOptions{
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
}