Sync, update, download Android Source & SDK from the domestic mirror station

Source: Internet
Author: User
Tags android sdk manager

Turn from:

Sync, update, download Android Source & SDK from the domestic mirror station

Download the android source from China mirrors????

Previously all from Google's site download synchronized updates, but now has a domestic mirror site is much better

Help? https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/android

?

Warehouse Address:

Git://aosp.tuna.tsinghua.edu.cn/android/

?

Using a browser to access:

Http://aosp.tuna.tsinghua.edu.cn/android/

Tsinghua University Android Source mirror station directory structure map

First, download Android source code

1. Download repo

?

git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/

?

2. Modify Repo

Google's address

Repo_url= 'https://gerrit.googlesource.com/git-repo'

Change to Tsinghua University address

Repo_url= ' Git://aosp.tuna.tsinghua.edu.cn/android/git-repo '

?

3. Download manifest

Google's address

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

Change to Tsinghua University address

$ repo init?-u git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest

4. Synchronous source Code

Still the same as before.

5. Replace the existing AOSP source code remote

If you have previously obtained AOSP source code in some way, but you want to synchronize with tuna in the future, you just need to . Repo/manifest.xml in the

?

?

?

?

?

?

Fetch= ":" review= "https://android-review.googlesource.com/"/>

?

Change to the following code:

?

?

?

?

?

?

Fetch= "Git://aosp.tuna.tsinghua.edu.cn/android/" review= "https://android-review.googlesource.com/"/ >

?

This method can also be used to synchronize part of the code from tuna while synchronizing the CyanogenMod code




Second, download update Android? Android SDK


Mirror site: http://mirrors.neusoft.edu.cn/

Configuration steps

    1. launch Android SDK Manager, open the main interface, select "tools", " options...", the" Android SDK manager-settings "window pops up,
    2. in the "Android SDK manager-settings" window, in the "http proxy server" and "http proxy port" input box, fill in the mirrors.neusoft.edu.cn and 80 and select"force https://... sources to is fetched using http://..."check box. Click the "close" button to close the "Android SDK manager-settings" window and return to the main interface;
    3. Select"packages","reload"in turn.

Sync, update, download Android Source & SDK from the domestic mirror station

Tags:androidclassstyle code src using comlog http

Sync, update, download Android Source & SDK from the domestic mirror station

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.