close

[Solved] Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found

Hello Guys, How are you all? Hope You all Are Fine. Today Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found in Flutter. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found Error Occurs ?

I am trying to run my project But I am facing following error.

Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found

How To Solve Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found Error ?

  1. How To Solve Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found Error ?

    To Solve Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found Error First Of All Close Your Android Studio.Then Just Open Your Terminal.Now Run this command in your terminal.dart pub global activate devtools -v 2.8.0Now, Open Your Android Studio and Run Your Project.Now Your error must be solved.

  2. Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found

    To Solve Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found Error You Just need to Downgrade version to 2.8.0 Just run this command inorder to solve this error: dart pub global activate devtools -v 2.8.0 Now, Your error must be solved.

Solution 1: Activat devtools 2.8.0

You Just need to Downgrade version to 2.8.0 Just run this command inorder to solve this error.

dart pub global activate devtools -v 2.8.0

Now, Your error must be solved.

Solution 2: For Android Studio

If You are using Android studio then Just follow this step.

  1. First Of All Close Your Android Studio.
  2. Then Just Open Your Terminal.
  3. Now Run this command in your terminal.
  4. dart pub global activate devtools -v 2.8.0
  5. Now, Open Your Android Studio and Run Your Project.
  6. Now Your error must be solved.

Solution 3: For VS code

If You are using VS Code then follow this step.

  1. Open VS Code Studio.
  2. Then Open Your Intigrated Terminal OR Your CMD.
  3. Now Run this command in your terminal.
  4. dart pub global activate devtools -v 2.8.0
  5. Then Just run your project.
  6. Now Your error must be solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment