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