Skip to content
This repository has been archived by the owner on Jan 14, 2018. It is now read-only.

Build failed on windows (android studio2.23 @win7 64-bit), but no problem on Mac. #470

Open
sunszl opened this issue Jun 19, 2017 · 4 comments

Comments

@sunszl
Copy link

sunszl commented Jun 19, 2017

Here is the error message:
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/commons/io/CopyUtils.class

If I try to include it in the following way. It gives some bugs(some request doesn't gives the response )
/compile ('com.octo.android.robospice:robospice-spring-android:1.4.14'){
exclude group: 'org.apache.commons', module: 'commons-io'
}
/
//compile 'commons-io:commons-io:1.3.2'

@sunszl
Copy link
Author

sunszl commented Jun 26, 2017

can Anyone help me?
Any reply is appreciated.

@stephanenicolas
Copy link
Owner

stephanenicolas commented Jun 26, 2017 via email

@sunszl
Copy link
Author

sunszl commented Jun 27, 2017

there are two commons-io in gradle's cache

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

.gradle\caches\modules-2\files-2.1\commons-io\commons-io\1.3.2\b6dde38349ba9bb5e6ea6320531eae969985dae5

I think this caused the problem. Can anyone find a way to work around this?

@stephanenicolas
Copy link
Owner

stephanenicolas commented Jun 27, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants