Download error encountered when downloading Android source code

Source: Internet
Author: User
Reference: Solves the download error when downloading the android source code.

 

My download and compilation Environments

Ubuntu 12.04 64-bit Lenovo ThinkPad I3 2G

Recently, the android browser plug-in needs to use the android source code for compilation (not the framework layer source code)

According to the settings on the Google official website, an error occurs during the download and thus the download is unavailable.

 

Before androidCodeIt is managed by Linux kernel (android.git.kernel.org). After being kicked out by kernel, the android source code is now directly managed by Google (android.googlesource.com.
Run

 
1$ Repo init-u https://Android.googlesource.com/platform/manifest-B android-2.3.3_r1

 

The following error is reported:

 
1Downloaderror: android.googlesource.com: <urlopen error [errno 110] connection timed out>

 

Solution

1. log on to https://android.googlesource.com/new-passwordin the browser and use the gmailaccount number to renew it;

2. Click "Allow access" on the webpage.

 
1Machine android.googlesource.com login Git-<username> .gmail.com password <password>2Machine android-review.googlesource.com login Git-<username> .gmail.com password <password>

3. append the above information ~ /. The End Of The netrc file (check the permissions of the current user. If this file does not exist, create one by yourself );

4. Uri changed to https://android.googlesource.com//Platform/manifest ("/a" is added in the middle ").

5. Repo init-u https://android.googlesource.com/a/platform/manifest-B android-2.3.3_r1

6. Repo sync

You can pull down the android source code.

The official statement is: Because access is basically anonymous, to prevent too many connections (intranet/virtual machines), the number of connections to the same IP address is limited. It seems to be using a Gmail account for authentication.

In this case, you will often encounter this problem when downloading from the company network or using virtual machines.

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.