I would not want to run XCode let alone Android Studio with an Android emulator with 12GB RAM or a VM. Even the lowest end MacBook Air comes with 16GB RAM.
It depends entirely on your target - you don’t need an emulator if you are already running an android device.
Xcode on my macbook doesn’t need 12GB. It is of course a different story if you need to also run clang-analyzer or rust-analyzer in addition to xcode/studio, but still, 16GB would be enough to get by for a sizeable chunk of devs.