4

commons-codec-1.9.jar... Duplicate files copied in 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
Nandkishor mewara
  • 2,552
  • 16
  • 29

1 Answers1

5

Download and Paste 'org.apache.http.legacy.jar' file in project/app/libs

and add dependencies in 'build.gradle'

if you have below line in your dependencies in gradle than don't add any other line for add jar file in your project.

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

testCompile 'junit:junit:4.12'

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

Nandkishor mewara
  • 2,552
  • 16
  • 29