I would like to know which files of an android studio project are generated in the execution automatically and therefore are not necessary to import the project into another computer.
I would like to know which files of an android studio project are generated in the execution automatically and therefore are not necessary to import the project into another computer.
If you want to take your project to another PC, mainly avoid copying the contents of the /build
folder, everything generated inside this folder is created when the project is built.
There are other files, for example R.java but they can be considered not so important since their size is not considerable.
Can I delete these files without pass nothing?
As an example, I have a project that weighs 20MB but sometimes I get 400MB of the whole project with the content that is generated within the /build
directory, which is unnecessary since it is generated again.
Notice my answer in this other question:
There I put the list of default files that Git ignores when adding version control to your project with this tool.
It is a good basis for your question.
In my projects, I usually add more files to the list according to the project and what I need. For example, if the build generates the apk in the app folder, I also add the * .apk.