Based on Ubuntu 15.04 LTS compiled Android5.1.0 source code

Source: Internet
Author: User

original link: http://blog.csdn.net/yuxiangyunei/article/details/45365235Environment:Ubuntu:ubuntu-15.04-desktop-amd64vmware:vmware-workstation-full-11.1.0-2496824,1f04z-6d111-7z029-av0q4-3aeh8android:andro Id-5.1.0_r3
One, Initializing a Build environment
Open Terminal to enter the following command, open by: Ctrl+alt+tYou can also open the terminal by right-clicking the desktop. 1.Installing the JDK
    1. $ sudo apt-get update
    2. $ sudo apt-get install OPENJDK-7-JDK

      The following has not been tested successfully

2.Config the JDK
    1. $ sudo update-alternatives--install "/usr/bin/java" "java" "/usr/lib/jvm/java-7-openjdk-amd64/bin/java" 1
    2. $ sudo update-alternatives--install "/usr/bin/javac" "Javac" "/usr/lib/jvm/java-7-openjdk-amd64/bin/javac" 1
    3. $ sudo update-alternatives--set Java/usr/lib/jvm/java-7-openjdk-amd64/bin/java
    4. $ sudo update-alternatives--set Javac/usr/lib/jvm/java-7-openjdk-amd64/bin/javac
3.Check the JDK
    1. $ java-version
Or
    1. $ sudo update-alternatives--config java
    2. $ sudo update-alternatives--config javac
4.Installing required Packages
    1. $ sudo apt-get install bison g++-multilib git gperf libxml2-utils make zlib1g-dev:i386 zip

Second, Building the System 1.Initialize
    1. $ source Build/envsetup.sh
2.Choose a Target
    1. $ lunch 20
3.Update API
    1. $ make Update-api
4.Build the Code
    1. $ make-j

References:1. http://source.android.com/source/initializing.html 2. http://blog.csdn.net/gobitan/article/details/24322561 3. Http://source.android.com/source/building-running.html

Based on Ubuntu 15.04 LTS compiled Android5.1.0 source code (RPM)

Related Article

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.