Search code examples
androidandroid-sourceandroid-builddiskspace

Why do I need a minimum of 100 GB free disk space just to build the Android project source code?


Why do I need a minimum of 100 GB free disk space only to "checkout" the Android project source code and over 150 GB just to build it?

https://source.android.com/source/requirements.html

When a buy a new Android phone with let's say 32 GB memory, only about 8 GB of those 32 GB are used before I get to install apps and that. I still have almost 25 GB space left!

Why does the Android source code take up more than 150 GB when it's build on a computer but only about 8 GB when it's build on a phone?

Thanks, sincerely


Solution

  • "Checking out a project from version control, and building a project [...] are completely different things. You cannot [...] expect the project [plus] its entire history and the compiled build to take up the same amount of space" - @Tim Castelijns