X FileSystemException: Cannot resolve symbolic links, path = 'C:\Users\nnnnnnnnn\OneDrive??? ??????\flutter\sorc\flutter\bin\flutter'
(OS Error: The filename, directory name, or volume label syntax is incorrect., errno = 123)
This issue is caused by invalid characters in your folder path — likely from your username or the folders inside OneDrive having non-ASCII characters or symbols that Windows and Flutter can’t parse correctly.
Move your Flutter SDK folder somewhere simple and safe, like:
C:\flutter
Do NOT install it inside:
C:\Users\<YourName>\OneDrive\...
Any folder with space
, unicode characters
, or special symbols
After moving your SDK:
Open Start → Edit the system environment variables
Click on Environment Variables
Under System variables, find Path
→ Click Edit
Add: C:\flutter\bin
Close and reopen:
Command Prompt
VS Code
In your command prompt, run: flutter doctor
If your user folder contains non-English characters, consider creating a new Windows user with a simple name like devuser
.
OneDrive often causes permission and path issues — better to avoid it for development tools.