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
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 withyarn add react-native-notifications@^2.0.6).When I add
missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative59"it worked.In settings.gradle use
react-native-notificationsinstead ofreactnativenotifications. Works for me at least.This sorted my problem, but I changed to:
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 .