flutter onesignal add problems "Expected to find project root in current working directory."

2,759

You'll get this error if you try run a command from outside the root of your flutter project folder. Simply type pwd in your project terminal, and the command will output the full path of your working directory. In VS code, you can quickly access the project root folder terminal by right clicking the folder then "open in integrated terminal".

Share:
2,759
Admin
Author by

Admin

Updated on January 03, 2023

Comments

  • Admin
    Admin over 1 year

    When I want to add onesignal to flutter, I get the following error. How can I solve it?

    PROBLEM PHOTO

    • Diwyansh
      Diwyansh over 2 years
      Are you running this command in your project folder?
    • Admin
      Admin over 2 years
      no, dont project work
    • Diwyansh
      Diwyansh over 2 years
      I mean are you running this command in your application folder?
    • Admin
      Admin over 2 years
      i run this command where flutter is installed
    • Diwyansh
      Diwyansh over 2 years
      But you have to run this command in your application folder.