'Flutter stuck on 'flutter' command - no output to console and it doesn't ever finish
I started following this tutorial about Flutter, and I followed each step until the installation of Flutter on windows, even added flutter to PATH.
Now, once I try to execute flutter
in CMD / Powershell (I work on Windows 10), it gives no output.
It seems to recognize the command, but it doesn't give further output for a very long time, the console just remains empty.
Has anyone encountered that problem before and knows how to fix it? Thanks.
Solution 1:[1]
The problem was that I installed it in C:/Program Files, the guy in the course didn't mention anything about that but in the link you sent they did.
Here's the key takeaway.
Installing flutter in places that requires elevated privileges (e.g. C:\Program Files\
won't work.
Thank you @pskink for the link.
Solution 2:[2]
it takes a long time, just wait. or you input flutter --verbose, it will output infomation to console.
Solution 3:[3]
Flutter is still in early development (version 1.20 at this point) and things seem to break (occasionally)
I just uninstalled and reinstalled flutter, which got it working again....
Solution 4:[4]
On Ubuntu 20.04 I installed flutter using snap. When there is a new release, it downloads almost 500M of files to refresh, and the whole time there is no output (even when I use --verbose flag). I had to use strace to find that a file is being downloaded.
sudo strace -f -t -e trace=file flutter
The output:
[pid 7377] 11:44:20 openat(AT_FDCWD, "latest_stable.tar.xz", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
0 515M 0 2206k 0 0 321k 0 0:27:22 0:00:06 0:27:16 375k^Cstrace: Process 7377 detached
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Romeo Sierra |
Solution 2 | ethan_you |
Solution 3 | Ben Winding |
Solution 4 | TiCL |