Let's quickly have a look at the system requirements to set up an aosp build environment.
A 64 bit system is required to build aosp.
As a side note, in case if you don't have a 64 bit machine, you can also build an older Android version
before gingerbread in a 32 bit machine.
You need at least 50 GB to check out the code and another extra 150 GB to build it.
So overall you need 400 GB of this space to download and build aosp.
So before downloading and building aosp, make sure you have 100 GB disk space.
I would also recommend using an SSD hard disk since it could significantly increase your disk IO performance
and that has a huge impact on the overall performance.
Also, please note that if you want to build multiple flavors of Android, you would need more space
for each build.
Say for example, you are building multiple variants of mobile platform, so in that case you would
need another extra 150 GB for each build variant.
So at least 16 GB of RAM is required and Google recommends 64 GB, but I guess 16 or 32 GB also should
be just fine.
That's from my personal experience.
I'm using a system with 16 core and 32 GB RAM.
It takes approximately around one hour 20 minutes to complete the entire build.
Google is saying that they're using 72 core machines with 64 GB of RAM, which takes about 40 minutes
for a complete build that seriously a top end mission.
But of course you can build Aosp in a lower end system.
The only drawback is that you have more waiting hours for the build to complete.
Another option which you could consider in case if you don't have a powerful mission, is to have a
high end mission in the cloud and do the build there.
That's pretty cheap.
Check out this link.
Want to own a house?
So here you have a lot of cheaper options where you can get a 64 commissions, save for one hour and
use it for the build purpose and then shut it down.
So the link of this web URL is attached in the description.
So now the requirements.
As per Google, the only oil supported as of now is open.
So in the past before Android, all Mac OS was supported.
But I guess since Apple switched to ARM architecture, it's now more officially supported.
I have once built Aosp 11 in Mac M1 with half success.
I have attached a video link here in case if you are interested, please have a look.