Android Studio 1.5.1 Duplicate files copied to the APK META-INF / NOTICE.txt commons-codec-1.9.jar ...?

commons-codec-1.9.jar ... Duplicate files copied to APK META-INF / NOTICE.txt

> Error:Execution failed for task
> ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files
> copied in APK META-INF/NOTICE.txt     File1:
> C:\Users\nandkishor.mewara\AndroidStudioProjects\New folder
> (2)\CityRetails\app\libs\commons-logging-1.2.jar  File2:
> C:\Users\nandkishor.mewara\AndroidStudioProjects\New folder
> (2)\CityRetails\app\libs\commons-codec-1.9.jar
+4
source share
1 answer

Download and paste the 'org.apache.http.legacy.jar file' into the project / application / libs

and add the dependencies to 'build.gradle'

if in your dependencies below gradle below line than not add another line to add jar file to project.

compile fileTree(dir: 'libs', include: ['*.jar'])

testCompile 'junit:junit:4.12'

no need to import commons-logging-1.2.jar file

+5
source

Source: https://habr.com/ru/post/1620045/


All Articles