1

I have a problem, gradle downloads two times library: commons-io-1.3.2.jar and I have in external libraries: commons-io-1.3.2 and 1_commons-io-1.3.2

I see in logs:

.gradle/caches/modules-2/files-2.1/commons-io/commons-io/1.3.2/b6dde38349ba9bb5e6ea6320531eae969985dae5/commons-io-1.3.2.jar gradle/caches/modules-2/files-2.1/org.apache.commons/commons-io/1.3.2/b6dde38349ba9bb5e6ea6320531eae969985dae5/commons-io-1.3.2.jar

end error:

Warning:Exception while processing task java.io.IOException: Can't write [/Users/**/jars/3/1f/main.jar] (Can't read [/Users/**/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-io/1.3.2/b6dde38349ba9bb5e6ea6320531eae969985dae5/commons-io-1.3.2.jar(;;;;;;**.class)] (Duplicate zip entry [commons-io-1.3.2.jar:org/apache/commons/io/CopyUtils.class]))

Error:Execution failed for task ':VFWallet:transformClassesAndResourcesWithProguardForApp'.

Job failed, see logs for details

  • if you have gradle download your dependency files there is no need for external libraries. you can remove the external libraries – djdere May 25 '17 at 09:22
  • but also in gradle caches I see one from commons-io and one org.apache.commons which is incorrect – MirelaKowalska May 25 '17 at 09:59
  • I have the exact same problem—with commons-io as well—and cannot see how it might be fixed. Deleting the cache, having gradle rebuild it, doesn't help. Neither does invalidating caches in Android Studio. I don't include any external dependencies via .jar files; gradle “compile” only. – PattaFeuFeu Jul 07 '17 at 13:55
  • Hi I fixed it, update the apache library, I removed: 'org.apache.commons:commons-io:1.3.2' update it if you need it – MirelaKowalska Jul 07 '17 at 14:22

1 Answers1

0

I fixed it by updating the apache library:

'org.apache.commons:commons-io:1.3.2'

This post helped me

MIRMIX
  • 1,052
  • 2
  • 14
  • 40