weird behavior here
flutter doctor first prints two lines like :
The system cannot find the specified path
The system cannot find the specified path
but continues the work :
[√] Flutter (Channel master, v1.12.16-pre.35, on Microsoft Windows [Version 10.0.14393], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 3.5)
[√] VS Code (version 1.40.2)
[√] Connected device (3 available)
• No issues found!
the problem is when I run the app in vs code terminal stops and just says
The system cannot find the specified path
but android studio does the job with no problem
I need the live share feature in vs code , so I need this IDE to work too (unfortunately)
complete terminal log after I run flutter run in vs code :
The system cannot find the path specified.
The system cannot find the path specified.
Launching lib\main.dart on LG M700 in debug mode...
Initializing gradle... -
Sending crash report to Google.
Crash report sent (report ID: 5e6da0b57190a836)
Initializing gradle... -Oops; flutter has exited
unexpectedly.
/Crash report written to C:\Users\H&M\AndroidStudioProjects\code_01\flutter_04.log;
please let us know at https://github.com/flutter/flutter/issues.
/
and yes %path% is set correctly for flutter sdk and bin folder too in both user and system variables
[Solved]
the problem was with the weird character (&) in the Windows Account Name (username)
Steps to resolve :
since even after changing the username from the control panel , C:\Users\<"username"> folder's name won't change , created another user.
made it admin.
copied SDK folders to another Drive so that IDE could access them without admin permits (even opening IDE as admin didn't give admin privileges to it's terminal smh).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With