Skip to content

Could not resolve com.google.guava:guava:32.1.2-android. #26

Description

@Anas610

Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugAssets'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not resolve com.google.guava:guava:32.1.2-android.
Required by:
project :app > project :react-native-images-to-pdf
> The consumer was configured to find a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'react-native-camera' with value 'mlkit'. However we cannot choose between the following variants of com.google.guava:guava:32.1.2-android:
- androidRuntimeElements
- jreRuntimeElements
All of them match the consumer attributes:
- Variant 'androidRuntimeElements' capabilities com.google.collections:google-collections:32.1.2-android and com.google.guava:guava:32.1.2-android declares a runtime of a component:
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Provides a library but the consumer didn't ask for it
- Provides its dependencies declared externally but the consumer didn't ask for it
- Provides attribute 'org.gradle.jvm.environment' with value 'android' but the consumer didn't ask for it
- Provides compatibility with Java 8 but the consumer didn't ask for it
- Provides its elements packaged as a jar but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Doesn't say anything about react-native-camera (required 'mlkit')
- Variant 'jreRuntimeElements' capabilities com.google.collections:google-collections:32.1.2-android and com.google.guava:guava:32.1.2-android
declares a runtime of a component:
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Provides a library but the consumer didn't ask for it
- Provides its dependencies declared externally but the consumer didn't ask for it
- Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it
- Provides compatibility with Java 8 but the consumer didn't ask for it
- Provides its elements packaged as a jar but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Doesn't say anything about react-native-camera (required 'mlkit')
The following variants were also considered but didn't match the requested attributes:
- Variant 'androidApiElements' capabilities com.google.collections:google-collections:32.1.2-android and com.google.guava:guava:32.1.2-android: - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about react-native-camera (required 'mlkit')
- Variant 'jreApiElements' capabilities com.google.collections:google-collections:32.1.2-android and com.google.guava:guava:32.1.2-android:
- Incompatible because this component declares an API of a component and the consumer needed a runtime of a component
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about react-native-camera (required 'mlkit')

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions