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

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

Open
Anas610 opened this issue Feb 14, 2024 · 2 comments
Open

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

Anas610 opened this issue Feb 14, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Anas610
Copy link

Anas610 commented Feb 14, 2024

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')

@Anas610 Anas610 added the bug Something isn't working label Feb 14, 2024
@dhurvp
Copy link

dhurvp commented Apr 4, 2024

getting same error any update on this issue.?

@yash-dadhich
Copy link

yash-dadhich commented Nov 4, 2024

@Anas610 @dhurvp Any update on this issue, or any other library you had used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants