<p dir="auto">**$ flutter doctor -v<br>
Building flutter tool...<br>
Unhandled exception:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Bad state: Future already completed**
#0      _AsyncCompleter.complete (dart:async/future_impl.dart:39)
#1      _NativeSocket.connect.&lt;anonymous closure&gt;.connectNext.&lt;anonymous closure&gt; (dart:io-patch/socket_patch.dart:494)
#2      _NativeSocket.issueWriteEvent.issue (dart:io-patch/socket_patch.dart:802)
#3      _NativeSocket.issueWriteEvent (dart:io-patch/socket_patch.dart:809)
#4      _NativeSocket.multiplex (dart:io-patch/socket_patch.dart:830)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)
Error: Unable to pub upgrade flutter tool. Retrying in five seconds..."><pre class="notranslate"><code class="notranslate">Bad state: Future already completed**
#0      _AsyncCompleter.complete (dart:async/future_impl.dart:39)
#1      _NativeSocket.connect.&lt;anonymous closure&gt;.connectNext.&lt;anonymous closure&gt; (dart:io-patch/socket_patch.dart:494)
#2      _NativeSocket.issueWriteEvent.issue (dart:io-patch/socket_patch.dart:802)
#3      _NativeSocket.issueWriteEvent (dart:io-patch/socket_patch.dart:809)
#4      _NativeSocket.multiplex (dart:io-patch/socket_patch.dart:830)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)
Error: Unable to pub upgrade flutter tool. Retrying in five seconds...
</code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">Trying to install Flutter in Windows 10 Machine. Clone the repo and added path and<br>
run <code class="notranslate">flutter doctor  </code> it downloaded sdk and getting error. deleted the cache folder in bin and retried but same error.</p>
<h2 dir="auto">Logs</h2>
<p dir="auto">same as <code class="notranslate">flutter doctor -V</code></p>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Updating flutter tool....
CreateProcessW failed 193
CreateProcessW failed 193
CreateProcessW failed 193
%1 is not a valid Win32 application.

  Command: C:\Users\KD\Desktop\flutter\bin\cache\dart-sdk\lib\_internal\pub\asset\7zip\7za.exe e data.tar.gz
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...

Waiting for 0 seconds, press CTRL+C to quit ..."><pre class="notranslate"><code class="notranslate">Updating flutter tool....
CreateProcessW failed 193
CreateProcessW failed 193
CreateProcessW failed 193
%1 is not a valid Win32 application.

  Command: C:\Users\KD\Desktop\flutter\bin\cache\dart-sdk\lib\_internal\pub\asset\7zip\7za.exe e data.tar.gz
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...

Waiting for 0 seconds, press CTRL+C to quit ...
</code></pre></div>
<blockquote>
<p dir="auto">For more information about diagnosing and reporting Flutter bugs, please see <a href="https://flutter.io/bug-reports/" rel="nofollow">https://flutter.io/bug-reports/</a>.</p>
</blockquote>