react-native-notifications: ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :reactnativenotifications.

Hello, I am following setup instructions guide here: https://github.com/wix/react-native-notifications/blob/master/docs/installation.md, but I am getting an error

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :reactnativenotifications.

Explored the package’s path inside node_modules, tried the lib path but also the same issue. I’m using react native 0.58.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 18

Most upvoted comments

I had the same issue, but I skipped the installation step 5 “RNNotifications and React Native version” because I thought I have version 2.0.6 (I missed ^ symbol when I was installing the library with yarn add react-native-notifications@^2.0.6).

When I add missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative59" it worked.

In settings.gradle use react-native-notifications instead of reactnativenotifications. Works for me at least.

This sorted my problem, but I changed to:

- project(':reactnativenotifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/lib/android/app')
+ project(':react-native-notifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/lib/android/app')
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-notifications": "^3.2.2"

In settings.gradle …

project(‘:reactnativenotifications’).projectDir = new File(rootProject.projectDir, ‘…/node_modules/react-native-notifications/lib/android/app’)

I have fixed this issue using react-native-notifications instead of reactnativenotifications .