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.