[Linux/Ubuntu 6] unbuntu download android source code, unbuntuandroid

Source: Internet
Author: User
Tags ubuntu touch

[Linux/Ubuntu 6] unbuntu download android source code, unbuntuandroid

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: http://www.linuxidc.com/Linux/2014-08/105310.htm

Android 4.4.4 release download http://www.linuxidc.com/Linux/2014-06/103467.htm

The simplest Ubuntu Touch & Android dual system installation http://www.linuxidc.com/Linux/2014-01/94881.htm

Ubuntu and Android 4.4.2 dual-start http://www.linuxidc.com/Linux/2014-05/101849.htm on Nexus

Ubuntu 14.04 configure Android SDK Development Environment http://www.linuxidc.com/Linux/2014-05/101039.htm

64-bit Ubuntu 11.10 Android Development Environment (JDK + Eclipse + ADT + Android SDK in detail) http://www.linuxidc.com/Linux/2013-06/85303.htm

Ubuntu 14.04 x64 method http://www.linuxidc.com/Linux/2014-04/101148.htm for configuring the Android 4.4 kitkat compiling environment

Ubuntu 12.10x64 install Android SDK http://www.linuxidc.com/Linux/2013-03/82005.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

For more information about Android, see Android topics page http://www.linuxidc.com/topicnews.aspx? Tid = 11

This article permanently updates link: http://www.linuxidc.com/Linux/2014-08/105323.htm

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.