skip to Main Content

I am recently want to see and run some other developers code in github and clone it to run in my emulator but it showing some error like this

"Running "flutter pub get" in budgex…
Because budgex depends on basic_utils from path which doesn’t exist (could not find package basic_utils at "..packagesbasic-utils-3.3.3"), version solving failed.
pub get failed (66; Because budgex depends on basic_utils from path which doesn’t exist (could not find package basic_utils at "..packagesbasic-utils-3.3.3"), version solving failed.)"

i am was trying to install basic_utils package but seem failed how to solve this problem?

2

Answers


  1. Click on the link to get packages in the given environment like VS code, or save your code while pubspec.yaml file is opened – it will get flutter packages for you automatically.

    Login or Signup to reply.
  2. The error says that you are trying to use a library on your local computer: basic_utils; the pub command is searching it in the path ..packagesbasic-utils-3.3.3 but it can’t find the library there.

    In the pubspec.yaml you should have something like this:

      basic_utils:
        path: ..packagesbasic-utils-3.3.3
    

    You should be ok replacing this with:

      basic_utils: 3.3.3
    

    If the developer has made changes to the library you should ask him the changed library and then update the pubspec with the correct location like described here.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search