I'm trying to build the AOSP source code, but I'm getting a "virtual memory exhausted: Cannot allocate memory" error part way through the build. I didn't specify the build target via lunch. Rather, I went straight to make -j4. I'm running the build on Ubuntu 12.04 LTS (x86) that's mounted on VirtualBox. The VM base memory is set at 1GB, but I've also created a 20GB swap partition. The drive is set to dynamically allocate/expand, with the cap set at 150GB. Based on the above settings, I would think that it satisfies the requirements needed for a single build. Thoughts?