(forward) Android source code acquisition-----in the Windows environment through git to get Android sources

Source: Internet
Author: User
Tags using git

In the course of learning Android, it is very important for us to delve into its source code, which will show you how to get our Android source code by using Git in a Windows environment.

1. First make sure that you have Git installed on your computer, which is installed by https://github.com/download.

2. We then enter the following command on the git command line:

git clone http://android.googlesource.com/platform/frameworks/base Android//This android is our own name to recognize, The name of the folder that represents clone  .

This download speed will be very slow, will download all the source code of Android (in the dorm after a night to download, 冏)

3. We look at the entire directory structure of our clone down Android by entering the git tag command:

We see that these are the source code for all of our Android releases.

4. Select the Android source code we need to download (the latest version of 4.4 is already inside, I checkout out 4.3 source)

git checkout android-4.3_r3.  1 

This speed is very fast, then we get the source of the Android4.3, we go to the clone of the Android-->core directory, and then copy the Java folder into our SDK directory, such as:

F:\adt-bundle-windows\sdk\platforms\sources\java

This allows us to link the source code in eclipse to the 4.3 source we just downloaded.

(forward) Android source code acquisition-----in the Windows environment through git to get Android sources

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.