Skip to content
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

Guava 32.1.1 dependency conflict #24

Open
spheroid opened this issue Dec 22, 2023 · 0 comments
Open

Guava 32.1.1 dependency conflict #24

spheroid opened this issue Dec 22, 2023 · 0 comments

Comments

@spheroid
Copy link
Contributor

When cose-lib is added to an Android application that also depends on com.google.guava:listenablefutures:1.0, Gradle build fails with error:

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDevDebugAarMetadata'.
> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
   > Could not resolve com.google.guava:listenablefuture:1.0.
     Required by:
         project :app > androidx.camera:camera-camera2:1.3.0
         project :app > androidx.camera:camera-lifecycle:1.3.0
         project :app > androidx.camera:camera-view:1.3.0
         project :app > androidx.camera:camera-camera2:1.3.0 > androidx.camera:camera-core:1.3.0
         project :app > androidx.compose.ui:ui-test-manifest:1.5.4 > androidx.activity:activity:1.8.0 > androidx.profileinstaller:profileinstaller:1.3.1
         project :app > androidx.camera:camera-camera2:1.3.0 > androidx.concurrent:concurrent-futures:1.1.0
      > Module 'com.google.guava:listenablefuture' has been rejected:
           Cannot select module with conflict on capability 'com.google.guava:listenablefuture:1.0' also provided by [com.google.guava:guava:32.1.1-android(androidRuntimeElements)]
   > Could not resolve com.google.guava:guava:32.1.1-android.
     Required by:
         project :app > com.google.cose:cose:20230908
      > Module 'com.google.guava:guava' has been rejected:
           Cannot select module with conflict on capability 'com.google.guava:listenablefuture:1.0' also provided by [com.google.guava:listenablefuture:1.0(runtime)]

This seems very similar to google/guava#6642. In fact, when cose-lib is updated to use com.google.guava:guava:32.1.2-android, compiled and used as a dependency from local Maven repository, the error goes away.

Would it be possible to update the dependency and release a new version of the library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant