Duplicate but different files

2

Well, there is an error in my application by Android Studio. And the problem is, the interface says that there are two files that are duplicates, however they are apparently different. I've also tried deleting them, however, by deleting File1, dependency errors appear in the program. By deleting File2, it returns when compiling the program. Can anyone help me?

  

Error: Execution failed for task   ': app: transformResourcesWithMergeJavaResForDebug'. >   com.android.build.api.transform.TransformException:   com.android.builder.packaging.DuplicateFileException: Duplicate files   copied in APK org / apache / http / version.properties

     

File1:   C: \ Users \ xxx.gradle \ caches \ modules-2 \ files-2.1 \ org.jbundle.util.osgi.wrap ped \ org.jbundle.util.osgi.wrapped.org.apache.http.client \ 4.1 .2 \ 98c86e42679fe7ac06 6f6c242e0d14f0bce0bb7c \ org.jbundle.util.osgi.wrapped.org.apache.http.client-4.1.2 .jar

     

File2:   C: \ Users \ xxx.gradle \ caches \ modules-2 \ files-2.1 \ org.apache.httpcomponents \ httpcore \ 4.4.5 \ e7501a1b34325abb00d17dde96150604a0658b54 \ httpcore-4.4.5.jar

    
asked by anonymous 05.08.2016 / 13:32

1 answer

2

To solve the problem, I just had to remove the .jar from the dependencies that my program was not using and it worked. Thank you all again.

    
05.08.2016 / 16:27