It took a long time to finally download the source 4.4.2 (if you want to just understand that the compilation process can use the best out of the box) after the download and then began to compile
My virtual machine Ubuntu configuration source has 16g+ (. Repo accounted for most of the deleted)
1 access to the source directory
2 Source build/envstup.sh
3 Lunch (select Full-eng code or direct lunch Full-eng)
4 Make (my host configuration generally with-J4 or-j8 will be stuck)
There are a variety of issues that are mostly missing dependent files after you perform make
Reference: http://www.jizhuomi.com/android/environment/369.html
The next compile to libwebviewchromium.so will be open for a long time. This file has 1. A few grams at this time is very prone to memory is not enough
So you can increase the virtual memory by setting the swap file.
Just started to get 1g still will appear internal compling error
Last setup 3g succeeded.
DD If=/dev/zero of=/swapfile bs=1024*3 count=1024*1024
sudo mkswap/swapfile
sudo swapon/swapfile
After compiling, you can cancel by following command
sudo swapoff/swapfile
sudo rm/swapfile
Use emulator to see the following effect (after 4.0, you can use this command directly)
If you want to continue using emulator after the interrupt is closed, you need to
SOURCE build/envsetup.sh
Lunch Full-eng
Android Source Code Compilation