-
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
internal dependency conflict appears when compiling google-cloud-pubsub #1319
Comments
@kir-titievsky I'll try to have a look at this. First and second errors appear to be unrelated though. Also please, be aware that we do not explicitly support Android at the moment.
This kind of duplication errors seems to be quite common in Android. To avoid duplication you could try adding to your build file: packagingOptions {
exclude 'META-INF/LICENSE'
} |
Hi, Just want to update it with the recent gradle configuration:Gradle:apply plugin: 'com.android.application' dependencies {
} android {
}Console:
Thanks. |
Hi @jfarkhat, compile group: 'com.google.cloud', name: 'google-cloud-pubsub', version: '0.4.0' with: compile ('com.google.cloud:google-cloud-pubsub:0.4.0') {
exclude group: 'com.google.api-client', module: 'google-api-client-appengine'
} This should exclude the dependency that is causing troubles. |
Could you please format your previous posts? Also please don't cut-and-paste these long logs but rather attach a public gist to your post. Are you excluding other artifacts in addition to the one I suggested you to exclude? |
I am sorry :))) Here is the output2 from adding the 3rd line of the code to MainActivity: https://gist.github.com/jfarkhat/3fcdce92eba2a918ef6163c89a3f9913 I excluded 'group: 'com.google.api-client', module: 'google-api-client-appengine' |
@jfarkhat I had a deeper look at this, try adding this dependency: compile group: 'com.google.api-client', name: 'google-api-client', version: '1.21.0' |
Hi, |
Reposting this submission to [email protected] as a bug:
The cloud pubsub library is not working with Android Studio 2.2.1 (Build #AI-145.3330264, built on October 6, 2016, JRE: 1.8.0_76-release-b03 amd64, JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o) under Debian (3.2.0-4-amd64 #1 SMP Debian 3.2.81-2 x86_64 GNU/Linux).
I added [compile group: 'com.google.cloud', name: 'google-cloud-pubsub', version: '0.4.0'] to gradle file, but it states the following: "Execution failed for task ':app:prepareDebugAndroidTestDependencies'.>Dependency Error. See console for details."
I checked the console and the output shows the following: "Conflict with dependency 'com.google.code.findbugs:jsr305'. Resolved versions for app (3.0.0) and test app (2.0.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.".
I tried to solve it by adding the following line to the android{} section of gradle file: "configurations.all { resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.0' }", but it resulted in the following output in console(see below):
"Error:FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. "
What should I do?
The text was updated successfully, but these errors were encountered: