robospice
robospice copied to clipboard
Build failed on windows (android studio2.23 @win7 64-bit), but no problem on Mac.
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'
can Anyone help me? Any reply is appreciated.
try using only module on the exclude statement. and check the result with your dependencies (./gradlew :module:dependencies)
2017-06-26 1:37 GMT-07:00 sunszl [email protected]:
can Anyone help me? Any reply is appreciated.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stephanenicolas/robospice/issues/470#issuecomment-310997535, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33VCDwvYabaZMAgfhDnVZ46V1nRsgks5sH23ZgaJpZM4N9uIo .
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?
Just exclude the right one, you should be good..
Le 26 juin 2017 22:38, "sunszl" [email protected] a écrit :
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
b6dde38349ba9bb5e6ea6320531eae969985dae5I think this caused the problem. Can anyone find a way to work around this?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stephanenicolas/robospice/issues/470#issuecomment-311258186, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33WRO6h58lIeH8sEmZWFhyoEb9loWks5sIJVhgaJpZM4N9uIo .