zo0r / react-native-push-notification

React Native Local and Remote Notifications
MIT License
6.76k stars 2.05k forks source link

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

Open ShamSundar17 opened 3 months ago

ShamSundar17 commented 3 months ago

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.
barmanrajdeep commented 2 months ago

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

do you have this?