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

Failed to resolve: project :react-native-push-notification #2416

Open
ShamSundar17 opened this issue Jul 19, 2024 · 1 comment
Open

Failed to resolve: project :react-native-push-notification #2416

ShamSundar17 opened this issue Jul 19, 2024 · 1 comment

Comments

@ShamSundar17
Copy link

Create NX latest workspace with version 19.5.1 for react-native project
having
react-native version : 0.74.1
AGP version : 8.5.1
Gradle version : 8.7

Currently build is successful but when trying to run the app to android device getting the followed errors
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve project :react-native-push-notification.
Required by:
project :app
> No matching variant of project :react-native-push-notification was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.5.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- None of the variants have attributes.

  • Try:

Review the variant matching algorithm at https://docs.gradle.org/8.7/userguide/variant_attributes.html#sec:abm_algorithm.
No matching variant errors are explained in more detail at https://docs.gradle.org/8.7/userguide/variant_model.html#sub:variant-no-match.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

@barmanrajdeep
Copy link

npm i --save react-native-push-notification

do you have this?

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

2 participants