Source code Download and compilation

Source: Internet
Author: User

To download the source code, you first need to install the following tool software:Curland theGit-core. InstallationCurl: Open terminal, you can use pressCtrl+alt +tshortcut to open the terminal and execute the command in the terminal:sudo apt-get Install curl. InstallationGit-core, under User directory, create a newbindirectory, executed in the terminal:mkdir ~/bin. InstallationGit-core, executed in the terminal:Curl Https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo. GiveRepoExecute Permissions:chmod a+x ~/bin/repo. Will be~/binAdd an environment variable that acts as:gitsoftware download installed in this directory, running in another directory may indicate an error: The software could not be found. To execute a command in the terminal:Path=~/bin: $PATH. Download the source code and go to the directory where the source code will be saved and execute it in the terminal:cd/opt/android4.3into theandroid4.3the directory. Download the source code for downloading different versions of theAndroid, specify aManifestBranch (that is, specify onlyAndroidcorresponding version), using the- bParameters(that is, download a version of the source code), after initialization is complete, the/opt/android4.3The catalog generates a. RepoDirectory This directory holds information about the source code that will be downloaded, let's startDownload source code, synchronize access to source code/bin/repo Sync。 Select the compile target: Execute the following command in the terminal: lunch, then select the device you want to compile, and after selection, the related files for the compiled project will be initialized. Execute in Terminal: Make-j4-j4: Indicates the compilation with four threads. Run the emulator in the terminal to execute:Emulator。 After the compilation is successful, it can be installed directly on the Development Board.

Source code Download and 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.