Cannot run program flutter.bat on Android Studio

1,070

if you using Avast Antivirus program, its possible that it deleted the flutter.exe file, as it somehow thinks it's IDP.Generic virus ...

Share:
1,070
Yehia Elhawary
Author by

Yehia Elhawary

Updated on December 25, 2022

Comments

  • Yehia Elhawary
    Yehia Elhawary over 1 year

    I'm running into a problem while creating a flutter project using Android Studio

    Cannot run program "C:\flutter\bin\flutter.bat" (in directory "G:\test"): CreateProcess error=2, The system cannot find the file specified

    error screenshot

    i tried to give full control permissions to the file C:\flutter\bin\flutter.bat but still same problem a screenshot for flutter doctor log flutter doctor log

    • Abhijith
      Abhijith over 3 years
      After the line Android license status unknown there a command,did you run that@Yehia Elhawary
    • Yehia Elhawary
      Yehia Elhawary over 3 years
      yes, i got error Android sdkmanager tool was found, but failed to run (C:\Users\Yehia\AppData\Local\Android\Sdk\tools\bin\sdkmanag‌​er): "ProcessException: The system cannot find the file specified. but the file is already exists in the mentioned path
    • Abhijith
      Abhijith over 3 years
      try this stackoverflow.com/questions/60460429/… @Yehia Elhawary
    • Abhijith
      Abhijith over 3 years
      I think there is lot problem with flutter using latest android studio update some path issues,plugin fails to load even if it is installed,if this is't work try uninstall and then reinstall android studio @Yehia Elhawary
    • Yehia Elhawary
      Yehia Elhawary over 3 years
      i tried to uninstall android studio, downloaded the latest version of android studion but still same problem, flutter wasn't a strong langauge like i thought
    • Abhijith
      Abhijith over 3 years
      No flutter is very good,there is something wrong with latest Android studio i think,did you tried stackoverflow.com/questions/60460429/… @Yehia Elhawary
    • Yehia Elhawary
      Yehia Elhawary over 3 years
      yes, still same problem if you have a time, can you join my anydesk ?
    • Abhijith
      Abhijith over 3 years
      i don't have anydesk brother also i have slow connection@Yehia Elhawary