Install repo under unbutu and download the Android source code

Source: Internet
Author: User

From: http://yinger-fei.iteye.com/blog/1300144

 

1. Install git

Sudo apt-Get install Git-core

2. Install curl

Sudo apt-Get install Git-core curl

3. Install repo and download repo through curl

 

  • Make sure you have a bin/directory in your home directory, and that it is stored in your path:

    $ mkdir ~/bin$ PATH=~/bin:$PATH
  • Note the following path, used to always use the old, http://android.git.kernel.org/repo, the generated repo file is wrong.

    $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
  •  

    4. Modify the execution permission

    Chmod A + x ~ /Bin/Repo

     

    5. Create a directory and enter it.

  • $ Mkdir working_directory $ CD working_directory // source code for storing the project
  • 6. Run repo init.

    Note: If a repo error cannot be found, you can list the entire repo path. For example ~ /Bin/repo init .....

    $ repo init -u https://android.googlesource.com/platform/manifest

    7. Execute Repo
    Sync

$ Repo sync // download source code from the server

Reference Path: http://source.android.com/source/downloading.html thanks to open source ah, to solve the big problem. Hey

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.