Android Source Code Compilation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.