stephanenicolas / robospice

Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules.
Apache License 2.0
2.95k stars 545 forks source link

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

Open sunszl opened 7 years ago

sunszl commented 7 years ago

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 commented 7 years ago

can Anyone help me? Any reply is appreciated.

stephanenicolas commented 7 years ago

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 notifications@github.com:

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 .

sunszl commented 7 years ago

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 commented 7 years ago

Just exclude the right one, you should be good..

Le 26 juin 2017 22:38, "sunszl" notifications@github.com 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\ b6dde38349ba9bb5e6ea6320531eae969985dae5

I 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 .