I am backing up android studio projects in google drive and I found that the build folders contain thousands of files, so google drive ends up tired.
My practice is that I run the 'clean project' command in Android Studio before exiting so that the unnecessary files are cleaned and only the important files remain to be backed up. But still sometimes the build folder remains there with many files.
My question is that if I delete these two build folders manually (see screenshot), will my project rebuild again on next startup, or will it mess up my project?
will my project rebuild again on next startup
Yes. For situations where backups are expensive in terms of space, time, or money, follow the rules for what goes into version control (e.g., git), and back up only those things.
If you are using a unix based OS you might be able to run following command using terminal:
find . -name build -exec rm -rf {} \;
which causes to delete all build folders inside a specific folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With