Project with path ':app' could not be found in project ':notifee_react-native'

See original GitHub issue

followed the instructions here: https://notifee.app/react-native/docs/installation.

Looks like I got this package.json file

{
  "name": "MyReactNativeApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "yarn react-native start"
  },
  "dependencies": {
    "@notifee/react-native": "^4.0.1",
    "react": "17.0.2",
    "react-native": "^0.66.4"
  },
  "devDependencies": {
    "@types/jest": "^27.4.0",
    "@types/react": "^17.0.38",
    "@types/react-native": "^0.66.11",
    "@types/react-test-renderer": "^17.0.1",
    "typescript": "^4.5.4"
  }
}

But my android code does not compile with the error in the subject. Further evaluation also indicates that indeed under node_modules/@notifee/react-native/android directory I got libs and src directory. I see an app directory under libs.

As a result, npx react-native run-android command fails during the compile stage with the error Project with path ':app' could not be found in project ':notifee_react-native'. The link points to this line: https://github.com/invertase/notifee/blob/31609d28c50cf2db83c3c604df3aed73812caab4/packages/react-native/android/build.gradle#L21

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
helenafordcommented, Apr 22, 2022

Released in 5.2.0 🚀

1reaction
243826commented, Jan 8, 2022

@mikehardy I submitted PR #289, which allows me to proceed in a way I think is the right way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Project with path ':mypath' could not be found in root ...
For example on project I am working on we have 2 android apps, one is the UI part and the other is a...
Read more >
app' could not be found in project ':notifee_react-native' · Issue ...
If we adding CodePush back to our project this error disappears. ... [Android] Project with path ':app' could not be found in project...
Read more >
multi-module:Project with path '' could not be found in project
i'm using gradle to build some projects.There are two top projects,one is “test1”,another is “test2”.“test1” has three modules:“module1” ...
Read more >
Project with path could not be found in project ':unityLibrary'.
Hello. I added "implementation project" for Firebase in mainTemplate.gradle. How fix this error? * What went wrong: A problem occurred ...
Read more >
Problem in understanding Gradle dependencies between ...
This gives me an error: "Project with path ':lib' could not be found in root project 'app'." IntelliJ is still suggesting "add dependency...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found