Flutter randomly crashes and removes flutter files
I've found the problem. Apparently my laptop doesn't like it when i run flutter clean
. So as long as i don't use that command my flutter won't crash...
Do you have any cloud file sync application running ? e.g. MS OneDrive or Google Backup & sync. At times, these application have exclusive access to these files which hampers other operations e.g. folder deletion (and perhaps crashing Android Studio).Suggestion - Pausing for some time( or killing them) is worth trying.
- I would suggest you use the Microsoft Visual Code for development.
- Use command line "flutter build apk" to build
- make sure you have enough hard disk space and memory space
- what does flutter doctor -v