I am facing same issue/problem in my android project.
Have you got any solution for this?
I am having my library say "xyz.jar" like your "hello.jar".
I have kept it in one directory which is placed in same directory where my 
project directory is present i.e. same hierarchy.
And I am giving relative path of this library (xyz.jar) in my two modules.
But still proguard is giving "Duplicate zip entry" error for any class 
present in library.
Sometimes it gives error "Unexpected end of ZLIB input stream" for any 
class present in library "xyz.jar".

Please help me.

Thanks,
Gauri.


On Tuesday, February 25, 2014 at 10:20:29 AM UTC+5:30, Eason Lee wrote:
>
> Hi all gradle experts:
>
> I've go another problem when doing gradle build with proguard.
>
> Below is my project structure:
> |---src/
> |---libs
>      |---android-support-v4.jar
>      |---hello.jar
> |---build.gradle
> |---settings.gradle
> |---library1(using android-libaray plugin)
>        |---build.gradle
>        |---libs
>             |---android-support-v4.jar
>             |---hello.jar
>
> This all works fine without proguard, however, It will got the exception 
> with proguard function.
>
> The error message is looks like
> * What went wrong:
> Execution failed for task ':proguardRelease'.
> > java.io.IOException: Can't write [/home/eason/xxxx/build/
> classes-proguard/release/classes.jar] (Can't read 
> [/home/eason/xxx/build/exploded-bundles/xxx.aar/libs/android-support-v4.jar(;;;;!META-INF/MANIFEST.MF)]
>  
> (Duplicate zip entry [android/support/v4/b/f.class == 
> android-support-v4.jar:android/support/v4/util/MapCollections.class]))
>
> BUILD FAILED
>
> From one discussed topic here, I found I need to 
> 1.remove android-support-v4.jar from libs folder
> 2.add dependency with "compile 'com.android.support:support-v4:13.0.0'" in 
> build.gradle.
>
> But my question is: 
> 1.how can I do for hello.jar here becuase it will also be reference by 
> outer app and library1?
> 2.Is there any flag can be set in build.gradle to prevent this situation?
>
> Thanks a lot for all your help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to