Android compiling environment Configuration

Source: Internet
Author: User
1. install required tools
Certificate -----------------------------------------------------------------------------------------------------------------------------------------------------------------
Sudo apt-Get install Git-core GnuPG sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
Certificate -----------------------------------------------------------------------------------------------------------------------------------------------------------------

2. Configure the Java environment
Certificate -----------------------------------------------------------------------------------------------------------------------------------------------------------------
Sudo Update-Java-alternatives-s Java-6-sun
Add/usr/lib/JVM/Java-6-sun to the top line of sudo VI/etc/JVM.
Certificate -----------------------------------------------------------------------------------------------------------------------------------------------------------------

3. Obtain the repo script.Code
Certificate -----------------------------------------------------------------------------------------------------------------------------------------------------------------
Cd ~; Mkdir bin; export Path = ~ /Bin: $ path; curl http://android.git.kernel.org/repo> ~ /Bin/repo; chmod A + x ~ /Bin/Repo
Certificate -----------------------------------------------------------------------------------------------------------------------------------------------------------------

4. create a project directory and capture the android Source Code
export --------------------------------
mkdir Android
Cd Android
repo init- U git: // android.git.kernel.org/platform/manifest.git
repo sync

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.