Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
I have this problem on Android Studio.
Does anybody know how to fix this problem?
Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
I have this problem on Android Studio.
Does anybody know how to fix this problem?
Checking each of your .dart file if any file imports the unexpected module likes 'dart:js'; I remove the dart:js ,then the promble gone. it may be at the top of the .dart file
1.Close Android Studio
2.Delete antivirus
3.Reinstall the stable version of flutter sdk.
4.Open your project
5.Flutter clean
6.Flutter pub get
7.Finish
It worked for me!!!
Reason: Some antiviruses think flutter files are viruses and eat them
Try this flutter pub upgrade --major-versions
. I had similar issues but was resolved after that