-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels