-1

I face this problem after I reset my android studio. I re install the android studio and re install the flutter latest version 3.12.3 stable.

I follow the steps mention by stack overflow users. I change the path of SDK to all the drive. I update my PowerShell to 5.0 version. I install the latest version of Git. my system and variable path are. but still when I type flutter or flutter doctor the cmd instantly closed. please help me with this issue. I did all the possible way to solve thisenter code here

  • Did you install/select and download command-line tools from android stodio->tools-> andtoid sdk-> sdk tools-> Android sdk command line tools(latest)? – Ashikul Islam Sawan Sep 01 '23 at 02:49
  • First, restart Windows. The reason is described in the long answer [What is the reason for "X is not recognized as an internal or external command, operable program or batch file"?](https://stackoverflow.com/a/41461002/3074564) Then open a command prompt window and run `set PATH`, `%SystemRoot%\System32\reg.exe QUERY HKCU\Environment /v Path` and `%SystemRoot%\System32\reg.exe QUERY "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v Path`. [Copy the three commands and their output](https://stackoverflow.com/questions/11543578/) to the Windows clipboard. – Mofi Sep 01 '23 at 05:57
  • Click on [edit] link of your question, paste the copied text, reselect the pasted text and press __Ctrl+K__ or click on symbol __{ }__ in the toolbar above the edit field to get the text formatted as preformatted text. Then we can see how __local__, __user__ and __system__ `PATH` are really defined on your PC. The link to the image showing just three directories can be deleted now. If directory paths contain your account name, obfuscate it by using `my account name` instead of real account name in these directory paths. – Mofi Sep 01 '23 at 06:02
  • I recommend running additionally in the command prompt window `%SystemRoot%\System32\reg.exe QUERY "HKLM\Software\Microsoft\Command Processor" /v AutoRun` and `%SystemRoot%\System32\reg.exe QUERY "HKCU\Software\Microsoft\Command Processor" /v AutoRun`. There should be twice output the error message: `ERROR: The system was unable to find the specified registry key or value.` The `AutoRun` registry value of the *Windows Command Processor* is __not__ existing by Windows default. But if there is an `AutoRun` registry value output, add the command and its output also to your question. – Mofi Sep 01 '23 at 06:09
  • @AshikulIslamSawan yes i have install the Android sdk command line tools(latest) – sayed faisal shah Sep 01 '23 at 10:24
  • @Mofi it is my first post that is why don't have much knowledge of stack overflow. Can you explain the reply properly i did not understood – sayed faisal shah Sep 01 '23 at 10:26
  • @Mofi additionally when i click on Flutter pub get in android studio i get the following error ".Exception: Cannot run program "C:\src\flutter\bin\flutter.bat" (in directory "E:\Flutter\Projects\CUSIT"): CreateProcess error=2, The system cannot find the file specified". does it is connected to flutter not running at cmd – sayed faisal shah Sep 01 '23 at 10:29
  • @sayedfaisalshah Do you use any antivirus software? – Ashikul Islam Sawan Sep 01 '23 at 21:56

0 Answers0