-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > duplicate entry: com/google/protobuf/AbstractMessageLite$Builder$LimitedInputStream.class #1360
Comments
Hi @ManuBabu, Please notice that we do not explicitly support Android. The information you provide is not enough to understand what is going on. How can you say that this problem is related to |
Hi @mziccard , |
@ManuBabu the errors you provided are not enough to understand what's going on, can you share more information? |
@mziccard Sure, i am trying to implement language translate feature in my app, so to implement this feature i am using Gradle Dependency :"com.google.cloud:google-cloud-translate:0.5.0" after syncing the dependencies i am getting following warnings: After Syncing Information:Total time: 4.54 secs when i run the project after sync i am getting following error: duplicate entry: com/google/protobuf/AbstractMessageLite$Builder$LimitedInputStream.class Errors after running my project Information:Gradle tasks [:app:assembleDebug]
Information:BUILD FAILED |
@ManuBabu try to include compile ('com.google.cloud:google-cloud-translate:0.5.0') {
exclude group: 'io.grpc', module: 'grpc-protobuf-lite'
} |
Hey @mziccard , i tried with the solution you provided, still i'm getting same errors as mentioned in the above comment. i tried the given solution in my project as well as new project. i am getting same error. :( |
could you please create fresh sample project and check by adding dependency. so that you can understand the issue better. |
Here you can find a working Android application using
defaultConfig {
...
multiDexEnabled true
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/io.netty.versions.properties'
exclude 'META-INF/INDEX.LIST'
}
Hope this helps. |
Hi ManuBabu, I have installed google cloud translate 0.5.0, but it have a lot of issues, same Mizccard's problem, can you show to me solution for this issuse?, thanks you |
@tiendatit92 Have a look at this example for a working Android app using |
@tiendatit92 hi sorry for late reply, i just changed com.google.android.gms:play-services to 9.6.0 version. and added force to it. |
Hi, Thanks. Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
|
Hi, i am getting this error when i run my app with 'com.google.cloud:google-cloud-translate:0.5.0' dependency.
Note: when i build my app, it gives 8 warnings with zero errors but when i run i am getting this error: **"Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
how can i resolve it??/
The text was updated successfully, but these errors were encountered: