Download Google Android 4.4 source code on Ubuntu

Source: Internet
Author: User
Tags ubuntu touch

Download Google Android 4.4 source code on Ubuntu

Install Cygwin in Windows and use Cygwin to download the Android source code in Windows.

Follow these steps to download the Google Android 4.4 source code in Ubuntu:

1. Install curl and git
Sudo apt-get install curl
Sudo apt-get install git-core
 
2. Install Repo
A) create a Repo installation directory and configure Environment Variables
$ Mkdir ~ /Bin
$ PATH = ~ /Bin: $ PATH
B) obtain the Repo Tool
$ Curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~ /Bin/repo
Problem: The above is the repo address set by Google, but the retrieval may fail.
Solution: some online users provide an alternative address to obtain the address. In case of an error, the following address can be used:
Curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo"> ~ /Bin/repo (I am using this, available)
Then change the permission:
$ Chmod a + x ~ /Bin/repo

3. Create and enter the source code download directory.
$ Mkdir WORKING_DIRECTORY
$ Cd WORKING_DIRECTORY
 
4 initialization source code Repo
If you download the latest code:
Repo init-u https://android.googlesource.com/platform/manifest
If you download the code of a specific Android mature version branch, add the-B parameter, for example, the latest android 4.4 branch code:
Repo init-u https://android.googlesource.com/platform/manifest-B android-4.4.1_r1
If the command is successfully executed, you must enter unsername and email, and enter your custom user name and email.
 
5. Synchronize the full set of source code
$ Repo sync
Problem: An error may be reported during command execution:
Fatal: '../platform/abi/cpp. git' does not appear to be a git repository
Fatal: The remote end hung up unexpectedly
Error: Cannot fetch platform/abi/cpp
Solution:
Go to WORKING_DIRECTORY and display the hidden file. You can see the. repo directory, open manifest. xml, find the fetch attribute, and modify it:
Fetch = "git: // Android.git.linaro.org

The repo sync command is generally not successful at one time during execution, and may time out or have other failures in the middle. In this case, you only need to execute repo sync again, and the previous records will be cached.
 
Reference:

Android 4.4.4 release and download

The simplest Ubuntu Touch & Android dual-System Installation Method

Enable dual-boot for Ubuntu and Android 4.4.2 on Nexus

Configure the Android SDK development environment in Ubuntu 14.04

Build the Android development environment under 64-bit Ubuntu 11.10 (JDK + Eclipse + ADT + Android SDK details)

How to configure the compiling environment of Android 14.04 kitkat on Ubuntu 4.4 x64

Install Android SDK on Ubuntu 12.10x64

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.