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.
Table of Contents
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 ?
- 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.
- 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.
- 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.0
- Now, Open Your Android Studio and Run Your Project.
- Now Your error must be solved.
Solution 3: For VS code
If You are using VS Code then follow this step.
- Open VS Code Studio.
- Then Open Your Intigrated Terminal OR Your CMD.
- Now Run this command in your terminal.
- dart pub global activate devtools -v 2.8.0
- Then Just run your project.
- 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