Skip to content

firebase-common: version conflict with auto-value-annotations #317

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

Closed
tadfisher opened this issue Mar 26, 2019 · 8 comments · Fixed by #1472
Closed

firebase-common: version conflict with auto-value-annotations #317

tadfisher opened this issue Mar 26, 2019 · 8 comments · Fixed by #1472
Assignees

Comments

@tadfisher
Copy link

  • Android Studio version: 3.5 Canary 7
  • Firebase Component: Common
  • Component version: 16.1.0

Steps to reproduce:

The firebase-common dependency exposes auto-value-annotations via its api configuration. This leads to build failures when the consuming project includes a dependency on a different version of auto-value-annotations.

For example:

* What went wrong:
Could not determine the dependencies of task ':Mobile-Android:preDevDebugBuild'.
> Could not resolve all task dependencies for configuration ':Mobile-Android:devDebugCompileClasspath'.
   > Could not resolve com.google.auto.value:auto-value-annotations:1.6.3.
     Required by:
         project :Mobile-Android
      > Cannot find a version of 'com.google.auto.value:auto-value-annotations' that satisfies the version constraints: 
           Dependency path ':Mobile-Android:unspecified' --> 'com.google.auto.value:auto-value-annotations:1.6.3'
           Constraint path ':Mobile-Android:unspecified' --> 'com.google.auto.value:auto-value-annotations:{strictly 1.6}' because of the following reason: devDebugRuntimeClasspath uses version 1.6
           Dependency path ':Mobile-Android:unspecified' --> 'com.google.firebase:firebase-messaging:17.5.0' --> 'com.google.firebase:firebase-common:16.1.0' --> 'com.google.auto.value:auto-value-annotations:1.6'

   > Could not resolve com.google.auto.value:auto-value-annotations:{strictly 1.6}.
     Required by:
         project :Mobile-Android
      > Cannot find a version of 'com.google.auto.value:auto-value-annotations' that satisfies the version constraints: 
           Dependency path ':Mobile-Android:unspecified' --> 'com.google.auto.value:auto-value-annotations:1.6.3'
           Constraint path ':Mobile-Android:unspecified' --> 'com.google.auto.value:auto-value-annotations:{strictly 1.6}' because of the following reason: devDebugRuntimeClasspath uses version 1.6
           Dependency path ':Mobile-Android:unspecified' --> 'com.google.firebase:firebase-messaging:17.5.0' --> 'com.google.firebase:firebase-common:16.1.0' --> 'com.google.auto.value:auto-value-annotations:1.6'

   > Could not resolve com.google.auto.value:auto-value-annotations:1.6.
     Required by:
         project :Mobile-Android > com.google.firebase:firebase-common:16.1.0
      > Cannot find a version of 'com.google.auto.value:auto-value-annotations' that satisfies the version constraints: 
           Dependency path ':Mobile-Android:unspecified' --> 'com.google.auto.value:auto-value-annotations:1.6.3'
           Constraint path ':Mobile-Android:unspecified' --> 'com.google.auto.value:auto-value-annotations:{strictly 1.6}' because of the following reason: devDebugRuntimeClasspath uses version 1.6
           Dependency path ':Mobile-Android:unspecified' --> 'com.google.firebase:firebase-messaging:17.5.0' --> 'com.google.firebase:firebase-common:16.1.0' --> 'com.google.auto.value:auto-value-annotations:1.6'
@google-oss-bot
Copy link
Contributor

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@PaulWoitaschek
Copy link

As a hotfix you can force the dependency:

allprojects {
  configurations.all {
    resolutionStrategy {
      force("com.google.auto.value:auto-value-annotations:1.6.3")
    }
  }
}

@tadfisher
Copy link
Author

Yep, that's exactly what we're doing.

@vkryachko
Copy link
Member

/assign @vkryachko

@dlew
Copy link

dlew commented Jun 6, 2019

Note that another possible workaround (at least on my project) was to just start including my own auto-value-annotations as api as well.

@creativeminds22
Copy link

As a hotfix you can force the dependency:

allprojects {
  configurations.all {
    resolutionStrategy {
      force("com.google.auto.value:auto-value-annotations:1.6.3")
    }
  }
}

hi i must to put this where?

@GiorgioBertolotti
Copy link

As a hotfix you can force the dependency:

allprojects {
configurations.all {
resolutionStrategy {
force("com.google.auto.value:auto-value-annotations:1.6.3")
}
}
}

hi i must to put this where?

In android/build.gradle

@nitinAct
Copy link

As a hotfix you can force the dependency:

allprojects {
  configurations.all {
    resolutionStrategy {
      force("com.google.auto.value:auto-value-annotations:1.6.3")
    }
  }
}

it doesn't work fo me

vkryachko added a commit that referenced this issue Apr 16, 2020
vkryachko added a commit that referenced this issue Apr 16, 2020
@firebase firebase locked and limited conversation to collaborators May 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
9 participants