Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

java.util.zip.ZipException: duplicate entry #2

Open
CylanLiuxinhua opened this issue Oct 11, 2016 · 5 comments
Open

java.util.zip.ZipException: duplicate entry #2

CylanLiuxinhua opened this issue Oct 11, 2016 · 5 comments

Comments

@CylanLiuxinhua
Copy link

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/protobuf/AbstractMessageLite$Builder$LimitedInputStream.class

@vineyugave
Copy link

Update this in gradle :

compile ('com.google.api.grpc:grpc-google-cloud-speech-v1beta1:0.0.7'){
exclude group: 'com.google.guava', module: 'guava-jdk5'
exclude group: 'com.google.protobuf', module: 'protobuf-java'
exclude group: 'io.grpc', module: 'grpc-protobuf-nano'
exclude group: 'io.grpc', module: 'grpc-protobuf-lite'
exclude group: 'com.google.api-client', module: 'google-api-client-appengine'
exclude group: "org.apache.httpcomponents", module: "httpclient"
}

@ricmalta
Copy link
Contributor

ricmalta commented Jan 25, 2017

Hi I made some improvements in the gradle configuration, and got the opportunity to upgrade the protobuf to the version 1.0.0 of the Google Cloud Speech service.

@CylanLiuxinhua Check if your issue is solved.
@vineyugave thanks for your input ;)

@vineyugave
Copy link

@ricmalta In your latest push . You forgot this again :
compile ('com.google.api.grpc:grpc-google-cloud-speech-v1beta1:0.0.7') {
exclude group: 'com.google.guava', module: 'guava-jdk5'
exclude group: 'com.google.protobuf', module: 'protobuf-java'
exclude group: 'io.grpc', module: 'grpc-protobuf-nano'
exclude group: 'io.grpc', module: 'grpc-protobuf-lite'
exclude group: 'com.google.api-client', module: 'google-api-client-appengine'
exclude group: "org.apache.httpcomponents", module: "httpclient"
}

:P

@ricmalta
Copy link
Contributor

Hi @vineyugave.
I upgraded the version of gRPC and now the protobuf stubs are generated on build time. Those lines supposedly are useless and deprecated, because they refere to version 0.0.7 beta v1.
Did you tried after the last commit?

Thanks 👍🏼

@venkataramanaduddu
Copy link

venkataramanaduddu commented Jun 1, 2017

Hi @ricmalta,
We should purchase the licence or what..?

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

4 participants