flutter doctor hangs after "Updating flutter tool..."

flutter command hangs
flutter doctor not working
flutter doctor hangs mac
hardware requirements for flutter
flutter config
flutter zip
flutter sdk path
android emulator for flutter

First: I have used Google to search for "flutter doctor" and searched your site as well. I will detail my results below, but before that here is where I am:

1) I followed the directions at https://flutter.io/setup-windows/ up to the point where I am unable to proceed.

2) My environment is: Windows 10, 64 bit, 210 Gb free space Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz; 8.00 GB installed memory(RAM)

    I have PowerShell 5.1, 
    I have setup Git for Windows with "Use Git from 
        the Windows Command Prompt" option
    I am able to run git from the command prompt or power shell

3) I tried downloading the .zip of the beta but when I ran the "flutter doctor" command it just hung.

4) Now for the search results: I found 3 relevant questions:

a) "Getting Flutter doctor to work" - I tried cloning the "alpha" version and checked the "Background Intelligent Transfer Service was running" (it was).

b) "Running Flutter Doctor without any results" - I removed the alpha version and cloned the beta version using git bash with the following results:

rex@NEXIUM MINGW64 /c/flutter
$  git clone -b beta https://github.com/flutter/flutter.git
Cloning into 'flutter'...
remote: Counting objects: 122267, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 122267 (delta 0), reused 0 (delta 0), pack-reused 122262
Receiving objects: 100% (122267/122267), 37.56 MiB | 2.39 MiB/s, done.
Resolving deltas: 100% (91730/91730), done.
Checking out files: 100% (2473/2473), done.

This also did not work (i.e. flutter doctor still hangs)

c) "Flutter doctor is not running in command prompt" - this one had the most promising result:

   I deleted the cache folder under the ..\AppData\Roaming\Pub directory.
   when I ran "flutter doctor" this time I got the following results:

C:\Users\rex>flutter doctor
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine 09d05a38912a3c1a906e95099cac9a7e14fae85f...
Unzipping Dart SDK...
    // here there was some text above the  ========== in the console about bits...
    // which went away, window appeared compressed and then the following message:
Updating flutter tool...

I am hoping to get the flutter tool installed and experiment with it for developing android and/or iOS apps. I have done some development using Xamarin in the Visual Studio 2017 but there is limited support for controls and I am hoping that this tool will be more productive. IF there is anyone who can help me get past this problem I would appreciate any help. Thanks, Rex


I tried running the flutter doctor command in a command window with adminstrator privilege with the same result. It then tried editing the flutter.bat file with some echo commands to try to get additional information which showed me that the batch file was getting to the point where the following statement is executed:

>CALL "%dart%" %FLUTTER_TOOL_ARGS% "%snapshot_path%" %*

I edited the batch file to uncomment the lines assigning the FLUTTER_TOOL_ARGS which gave me additional information and the batch file exited as follows: ================== results in the command window =====================

>C:\Windows\System32>flutter doctor  
>in acquire_lock ...    # ECHO to get debug information  
>in subroutine ...      # ECHO to get debug information  
>in after_subroutine ...# ECHO to get debug information    
>dart - C:\src\flutter\flutter\bin\cache\dart-sdk\bin\dart.exe # ECHO dart  
>FLUTTER_TOOL_ARGS ""--checked " --observe=65432" # ECHO FLUTTER_TOOL_ARGS    
 #next line is ECHO of snapshot_path  
>snapshot_path C:\src\flutter\flutter\bin\cache\flutter_tools.snapshot  

============== the following was output from the batch file =========  

 Unhandled exception:
 Could not load "file:///C:/Windows/System32/%20--observe=65432":   
 FileSystemException: Cannot open file, path =  
 'C:\Windows\System32\ -->observe=65432'  
 (OS Error: The system cannot find the file specified. , errno = >2) null  
 # another ECHO    
 after CALL ... # echo to get debug information 

================== end of results in the command window =====================

=========== ANOTHER NEW EDIT =============

Just to clarify the above edit, I totally deleted everything related to flutter and then re-installed/unzipped it in another directory "C:\src\flutter" which does not require admin privilege to edit, etc. but I did not delete the cache folder under the ..\AppData\Roaming\Pub directory as before so I am going back to do that this morning. I will also use the -v or -verbose option at the command prompt to see if there is any additional help and add the new information once done.

============== FOLLOW UP EDIT ================

I remove some of the debug ECHO statements, modified others, made sure 7z.exe is in the path, removed the cache directory but the results are basically the same as follows:

C:\WINDOWS\system32>flutter doctor -verbose  
Show dart, FLUTTER_TOOL_ARGS, and snapshot_path:  
dart - C:\src\flutter\flutter\bin\cache\dart-sdk\bin\dart.exe  
FLUTTER_TOOL_ARGS ""--checked " --observe=65432"  
snapshot_path C:\src\flutter\flutter\bin\cache\flutter_tools.snapshot  
execute call to dart ...  
Unhandled exception:  
Could not load "file:///C:/Windows/System32/%20--observe=65432":   
    FileSystemException: Cannot open file, path =   
    'C:\Windows\System32\ --observe=65432' (OS Error: The system cannot find   
    the file specified., errno = 2)  
returned from call to dart
exit code 255


============ Another Update  ===========  

I decided to try the clone of the beta again since that was the most promising of all the previous things I did. When done I used the power shell and issued the "flutter channel" command just to see what that would do. Surprisingly I got a similar result to running "flutter doctor" previously. First there was an output at the top of the screen showing dart being downloaded and then when that was done the following was printed on the console below the original command:

C:\Users\rex>flutter channel  
Checking Dart SDK version...  
Downloading Dart SDK from Flutter engine   
Unzipping Dart SDK...  
Updating flutter tool...  

and then the console hung as before...

I finally aborted the command and set echo on in flutter.bat. That file hangs with the following command displayed on the screen (all on the same line):

C:\src\flutter>CALL "C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe"  
    "--checked --observe=65432" 
    "C:\src\flutter\bin\cache\flutter_tools.snapshot" doctor  

At this point I am pretty much at a loss.

Have tried the following?

Run the flutter doctor command from a command prompt with admin privileges?

Tried installing a different type of unzip program (like 7-zip) and ensuring it's in the PATH?

BTW I'm looking at this issue that seems similar to what you are describing: https://github.com/flutter/flutter/issues/11698

Flutter doctor never finishes · Issue #25624 · flutter/flutter · GitHub, Well, I spoke too soon. It still hangs up, but a lot later in the process: JARMAC:​flutter jar$ flutter -v doctor -v Downloading Dart SDK from Flutter  Windows: "flutter doctor" in cmd prompt hangs at "Unzipping Dart SDK". No progress after this stage #11698

You can try to use the Flutter Console with Administrator Access Privilege and try to change the change the channel to the current stable version flutter channel stable

Then, once again run the flutter upgrade.

I hope this help you.

Flutter doctor hangs on start, no output, Albeith in win10, these steps solved the issue for me (do not know if all are necessary). restart win; run cmd as administrator; flutter doctor. aam changed the title flutter doctor starts, neve finshes flutter doctor starts, hangs up and never finishes Feb 15, 2018

Seems like you don't have enough privilege to save or edit files in that directory. Try to run your command prompt as admin or try to run your flutter console as admin and check if that helps.

flutter doctor hangs after “Updating flutter tool…”, flutter doctor hangs after “Updating flutter tool…” flutter · avatar · Milan Dhameliya. 212 10 months ago. First: I have used Google to search for "flutter doctor" and  This issue is indeed related to the JDK's version. I was using a JDK v9 which apparently doesn't go well with Android Studio. I've switch my JAVA_HOME env variable to a 1.8 version and flutter doesn't complain anymore:

May be Antivirus or Firewall blocking try running windows in Safe mode and then run flutter commands

Flutter Update hangs up, I want to update my flutter but whenever I run "flutter update" on the command prompt, its stuck and does not load. So I tried "flutter doctor" and  The issue is with my network at work. I tried it while connected to an external network and it was successful! I can usually get around the proxies at work, but even Chrome has been having some trouble with DNS lookups lately, giving DNS lookup errors and certificate errors.

On Windows, the simplest and easiest way is, download the latest version Flutter SDK. Manually replace the current folder by pasting the downloaded flutter folder instead of the current folder in the C drive. Always choose "replace and paste".

Installing Flutter on a Mac, and running your first Flutter app, tldr: You can install Flutter on a new Mac, and run your first Flutter demo app, Go back to the Terminal (where you set your PATH), and type: flutter doctor. C:\src\flutter>flutter doctor This command checks your environment and displays a report of the status of your Flutter installation. Check the output carefully for other software you might need to install or further tasks to perform (shown in bold text).

Flutter pub upgrade Issue [SOLVED] - Inside my Mind, Unfortunately when I tried this I got a terminal that got stuck at pub try to perform a pub upgrade whenever I used flutter doctor or flutter run . Heart Palpitations After Eating – When to Be Concerned and Foods to Avoid Consuming certain foods or drinks, especially in excess, may make your heart skip a beat.

Installing Flutter on Windows 10, flutter doctor. Congrats, you now have the Flutter SDK on your Window machine. Next you need to get a platform (in this case, Android) SDK. My web app on both Android and iOS scroll ok, but after a bit of scrolling the screen just freezes. i doesn't accept any more gestures. Flutter 1.13.3-pre.83 • channel master • https://github.c

Flutter stuck on initializing graddle, Validate your Flutter SDK. Open up your terminal and enter the following command. flutter doctor -v. If everything is setup correctly, it should  Atrial flutter is a type of abnormal heart rate. It occurs when the upper chambers of your heart beat too fast. Learn about symptoms and risk factors.

  • I have done everything as I understand from the referenced material but with no help. I have edited the original information and added results from modifying the batch file to be able to see what is happening. There is an error being returned from the call to execute "dart". It appears there is a refence to a non-existant file in the windows\system32\ directory but the print result does not make much sense to me.