You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to run project after updating to flutter 1.20.0 #2702
Hi, so I just updated my flutter SDK to the latest stable version of 1.20.0 after they announced the release not long ago. But, then I found out that now, I'm unable to run my existing project by hitting the F5 on vs code as I normally do. I don't know whats wrong, but it woks fine when I run "flutter run" on cmd.
It just shows as the image below without any further info
I also tried to create a new project but, the same thing happens.
There was an incorrect version number in Dart-Code's FlutterCapabilities that caused it to try and use a switch that isn't in todays stable release. I've fixed it and pushed an update (v3.13.2). You can get this by running the Extensions: Check for Updates command from the command palette and upgrade to v3.13.2 of both extensions. If the update doesn't show up (they can take a while), you can force it by:
uninstall Flutter extension
uninstall Dart extension
restart VS Code
install Dart extension (make sure to do this first)
install Flutter extension
If you try to skip installing the Dart extension and just install Flutter, it may install an old version of the Dart extension (a VS Code marketplace caching bug). Once you're on v3.13.2 of both extensions, things should work again.
Reacted by Surya Widi Kusuma, Sawan Kumar Bundelkhandi, Ahmad Faaiz Al-auza'i, Jorge Atempa, Aya, Gabriel Roveri, Oleksandr Prokhorenko , Haneef Ansari, Lidisson Hugo, Nacho ; and 12 more
Reacted by Ibrahem ahmad
Reacted by Surya Widi Kusuma, Sawan Kumar Bundelkhandi, Ahmad Faaiz Al-auza'i, Jorge Atempa, Luke Greenwood, Alexander Makarov, Johan, Bryan Monsalvatge, Florian Heitzmann and Chandu J S
Reacted by Arone Jerome Malicse, Victor Roldan, Aman vyas and Ibrahem ahmad
@VRspace4 yep, that's how it should be (though you probably could've also click the Reload button in the extensions list instead of a full restart). The uninstall/reinstall instructions were for those that couldn't see the update yet (as it sometimes can take 15min to propagate after release). Glad it's sorted!
If things aren't working in Android Studio, that's not the same issue as this (which was a bug in the VS Code extension). If things are failing in Android Studio without a clear message why, that should be raised at https://github.com/flutter/flutter-intellij/ (or if it can be reproduced from the command line, https://github.com/flutter/flutter/). Thanks!
Activity
Fix version for Flutter web-server-debug-backend-protocol switch
blazeu commentedon Aug 5, 2020
I got 64 exit code too, I believe this is the error in the log that is relevant.
DanTup commentedon Aug 5, 2020
There was an incorrect version number in Dart-Code's
FlutterCapabilitiesthat caused it to try and use a switch that isn't in todays stable release. I've fixed it and pushed an update (v3.13.2). You can get this by running the Extensions: Check for Updates command from the command palette and upgrade to v3.13.2 of both extensions. If the update doesn't show up (they can take a while), you can force it by:If you try to skip installing the Dart extension and just install Flutter, it may install an old version of the Dart extension (a VS Code marketplace caching bug). Once you're on v3.13.2 of both extensions, things should work again.
VRspace4 commentedon Aug 5, 2020
I didn't have to uninstall anything.
Restarting vscode worked for me after Flutter was updated.
DanTup commentedon Aug 6, 2020
@VRspace4 yep, that's how it should be (though you probably could've also click the Reload button in the extensions list instead of a full restart). The uninstall/reinstall instructions were for those that couldn't see the update yet (as it sometimes can take 15min to propagate after release). Glad it's sorted!
lbarqueira commentedon Aug 6, 2020
I restarted Vscode and it works.
AbdoZDGaia commentedon Aug 6, 2020
I still get this error as of today after the update, btw i have uninstalled and re-installed dart then flutter.
whats the solution?
DanTup commentedon Aug 6, 2020
@AbdoZDGaia try the things listed in #2706 (comment) - that seems to be a Flutter issue unrelated to this one.
UbaidillahGit commentedon Aug 15, 2020
@AbdoZDGaia i also get the same issue Execution failed for task ':app:compileFlutterBuildDebug'.
Hamzakhan00 commentedon Sep 10, 2020
(Android studio 4.0)
(Flutter SDK version 1.20.2 )
update flutter plugin
clean the code
then go to Pubspace.yaml
and click Pub upgrade
then Pub get
sanjayrajsinh commentedon Sep 22, 2020
I use android studio and face same problem. after update flutter 1.20.0 project not able to run and dont give any error or log are blank
DanTup commentedon Sep 22, 2020
If things aren't working in Android Studio, that's not the same issue as this (which was a bug in the VS Code extension). If things are failing in Android Studio without a clear message why, that should be raised at https://github.com/flutter/flutter-intellij/ (or if it can be reproduced from the command line, https://github.com/flutter/flutter/). Thanks!
joharputr commentedon May 27, 2021
i solved with