Download Android source code in Ubuntu

Source: Internet
Author: User

1. Prepare the environment.

1. Install the GIT tool. AndroidSource codeGit is used for management. Compared with SVN, this is a Distributed Source.CodeSVN is a centralized source code management tool. To install the GIT tool, run the following command on Ubuntu:

User-name @ machine-Name :~ $ Sudo apt-Get install Git-core GnuPG

2. Other dependent packages. Run the following command on Ubuntu:

User-name @ machine-Name :~ $ Sudo apt-Get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl

3.Debugging tool. Run the following command on Ubuntu:

User-name @ machine-Name :~ $ Sudo apt-Get install valgrind 2. Download the android source code project.

1. First installRepo (Is a convenientGitManaged tools)

$ Mkdir~ /Bin
$ Path= ~ /Bin: $ path
$ Curl https://Dl-ssl.google.com/dl/googlesource/git-repo/repo> ~ /Bin/Repo
$ Chmod+X~ /Bin/Repo

InitializationRepo client,I am using the following address. A network error occurs when I use the official website address.

$ Mkdir android2.3.7
$ CD android2.3.7

$ Repo init-U http://Android.googlesource.com/platform/manifest.git-B android-2.3.7_r1

Enter the user name and email address as prompted.

Next

$ Repo sync

Start to synchronize source code according to your network speed

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.