Skip to content

Unable to run project after updating to flutter 1.20.0  #2702

Closed

Description

@ahmadf20

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

image

I also tried to create a new project but, the same thing happens.

Here's the dart code log:

Screen Shot 2020-08-05 at 23 40 25

Activity

  1. added this to the v3.13.2 milestone on Aug 5, 2020
  2. added a commit that references this issue on Aug 5, 2020
    3caf6d9
  3. blazeu commented on Aug 5, 2020

    @blazeu

    I got 64 exit code too, I believe this is the error in the log that is relevant.

    [12:02:57 AM] [FlutterRun] [Info] [Flutter] ..  in [MY_PROJECT_DIR]
    [12:02:57 AM] [FlutterRun] [Info] [Flutter] ..  with {"toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code"}}
    [12:02:57 AM] [FlutterRun] [Info] [Flutter]     PID: 1654
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [ +136 ms] executing: git -c log.showSignature=false log -n 1 --pretty=format:%H
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [  +41 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [        ] 0598acc722b752516b6a27b400e96cce8eb06f2b
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [        ] executing: git tag --contains HEAD
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [  +13 ms] Exit code 0 from: git tag --contains HEAD
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [   +1 ms] executing: git describe --match *.*.*-*.*.pre --first-parent --long --tags
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [  +11 ms] Exit code 128 from: git describe --match *.*.*-*.*.pre --first-parent --long --tags
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [        ] fatal: No names found, cannot describe anything.
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [   +2 ms] Could not interpret results of "git describe":
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [   +1 ms] executing: git rev-parse --abbrev-ref HEAD
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [  +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [        ] [MY_GIT_BRANCH]
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [   +3 ms] ensureAnalyticsSent: 1ms
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [   +5 ms] Running shutdown hooks
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [   +1 ms] Shutdown hooks complete
    [12:02:58 AM] [FlutterRun] [Error] [Flutter] [   +4 ms] exiting with code 64
    
  4. DanTup commented on Aug 5, 2020

    @DanTup
    Member

    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.

  5. VRspace4 commented on Aug 5, 2020

    @VRspace4

    I didn't have to uninstall anything.

    Restarting vscode worked for me after Flutter was updated.

  6. DanTup commented on Aug 6, 2020

    @DanTup
    Member

    @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!

  7. lbarqueira commented on Aug 6, 2020

    @lbarqueira

    I restarted Vscode and it works.

  8. AbdoZDGaia commented on Aug 6, 2020

    @AbdoZDGaia

    image
    image

    I still get this error as of today after the update, btw i have uninstalled and re-installed dart then flutter.
    whats the solution?

  9. DanTup commented on Aug 6, 2020

    @DanTup
    Member

    @AbdoZDGaia try the things listed in #2706 (comment) - that seems to be a Flutter issue unrelated to this one.

  10. UbaidillahGit commented on Aug 15, 2020

    @UbaidillahGit

    @AbdoZDGaia i also get the same issue Execution failed for task ':app:compileFlutterBuildDebug'.

  11. Hamzakhan00 commented on Sep 10, 2020

    @Hamzakhan00

    (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

  12. sanjayrajsinh commented on Sep 22, 2020

    @sanjayrajsinh

    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

  13. DanTup commented on Sep 22, 2020

    @DanTup
    Member

    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!

  14. joharputr commented on May 27, 2021

    @joharputr

    i solved with

    • delete packages.
    • delete pubspec.lock
    • flutter clean
    • flutter pub get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    importantSomething important!in flutterRelates to running Flutter appsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions