react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

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

Open ShamSundar17 opened this issue 1 year ago • 1 comments

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.

ShamSundar17 avatar Jul 19 '24 13:07 ShamSundar17

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

do you have this?

barmanrajdeep avatar Aug 15 '24 04:08 barmanrajdeep