-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing error "Flutter requires PowerShell 5.0 or newer." in IDE #1892
Comments
Thanks Danny, "...PowerShell 8.0..." - typo? Just to confirm, I've updated PS to 5.1 and all is working fine now. |
Heh, the real message from Flutter will be passed through to the UI. I just changed Flutter to temporarily need "PowerShell 8" so that I could test it (since I already had >= 5) 😄 |
how to update powershell? |
@iamkarloramirez it's installed with the Windows Management Framework: https://www.microsoft.com/en-us/download/details.aspx?id=54616 |
Please How did you update your PowerShell? |
@Emred360 there's a link in the comment above - it's part of the Windows Management Framework. |
@DanTup Thanks for your reply. I have updated my PowerShell. But I have a new issue which I've been battling with for a long time now. |
@Emred360 that seems like a Gradle issue rather than the VS Code plugin so it's not something I'm familiar with. However if the error is to believed, it seems like it's trying to allocate 1.5GB for the heap (possible because Java was launched with You may wish to try some of the suggestions on StackOverflow: Hope this helps! |
The error below is printed in the flutter console (flutter\flutter_console.bat) but VS code and Android studio console (flutter\bin\flutter.bat) do nothing (just waiting for resources), so users who have Powershell below 5.0 don't know that they need to upgrade. This is likely to affect those on Windows 7
It happens after running one of the following commands:
flutter upgrade
flutter update
flutter doctor
Environment variables are set up as follows:
C:\Windows\System32;
E:\flutter\flutter\bin;
E:\git\Git\bin;
Checking Dart SDK version...
The term 'Unblock-File' is not recognized as the name of a cmdlet, function, sc
ript file, or operable program. Check the spelling of the name, or if a path wa
s included, verify that the path is correct and try again.
At line:1 char:13
'; & 'E:\flutter\flutter/bin/internal/update_dart_sdk.ps1'
dNotFoundException
Flutter requires PowerShell 5.0 or newer.
The text was updated successfully, but these errors were encountered: