Android Source Download

Source: Internet
Author: User

There are many examples of Android's source code compilation online.

What I want to say here is that those who write examples should be given more fish than people.

such as download source code, well-known reasons, can not download the original site. Take the mirror site of Tsinghua University for example (https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/), on the website is very clear how to replace the link address.

Many articles say to download a version, run first

Repo Init-u git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest-b ANDROID-5.1.1_R4
In fact, according to the Tsinghua website should be (HTTPS link)
Repo Init-u https://aosp.tuna.tsinghua.edu.cn/android/platform/manifest-b ANDROID-5.1.1_R4

Next question, to download the repo file to the ~/bin directory, you can go to this directory and run git clone git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/without moving it again.
This repo file does not seem to change the address inside.

The next question, since it is to see the tutorial, it must be unfamiliar with a lot of processes. In this download, set up your git account first.
git config--global user.email "[Email protected]"
git config--global user.name "Your name"
To avoid fatal:unable to Auto-detect email address this error.

Recommend an address (to give an example of fishing) https://www.jianshu.com/p/367f0886e62b

Android Source Download

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.