Can I delete these folders for assembly if I do not start Android Studio?

I copy android studio projects to google drive and find that the build folders contain thousands of files, so google drive eventually gets tired.

My practice is that I run the β€œclean up project” command in Android Studio before exiting to remove unnecessary files and save only important files for backup. But still, sometimes the build folder stays there with many files.

My question is that if I delete these two build folders manually (see. Screenshot), will my project be rebuilt again the next time it starts, or will it ruin my project?

Two build folders

+13
source share
5 answers

. , , , , (, git), .

+13

, . . . .

+1

It is best to use a version control system such as git, it generates a gitignore file that mentions unnecessary files. guitar player example:

.iml

.gradle

/local.properties

/.idea/workspace.xml

 /.idea/libraries

.DS_Store

/ build

/ captures

.externalNativeBuild

*.idea

.idea / modules.xml
+1
source

If you are using a Unix-based OS, you can run the following command using a terminal:

 find . -name build -exec rm -rf {} \;

which causes the deletion of all assembly folders within a specific folder.

+1
source

Source: https://habr.com/ru/post/1686293/


All Articles