Download Android source code

Source: Internet
Author: User

Android code is managed using git. Therefore, git is usually installed for downloading Android source code. This article describes how to download and associate Android source code only using Eclipse.

Download Eclipse. The latest version is Juno and comes with the EGit plug-in --> Eclipse Git plug-in

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/0J0411941-0.png "border =" 0 "alt =" "/>

You can use EGit to clone the android source code.

Android git address: https://android.googlesource.com/

Android Git repositories

To clone one of these repositories, install git, and run:
git clone https://android.googlesource.com/name

Find platform/frameworks/base: https://android.googlesource.com/platform/frameworks/base/

Click clone a git in Eclipse EGit.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/0J0415130-1.png "border =" 0 "alt =" "/>

Enter

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/0J0411R3-2.png "border =" 0 "alt =" "/>

One way to Next, start clone (depending on the network speed needs time, I spent 5 minutes) an Android source code, by default, there will be a base project in the local Eclipse project path.

 

Then copy the android and com folders under D: \ project \ base \ core \ java (my project path) to (My SDK path) D: \ tools \ adt-bundle-windows \ sdk \ platforms \ android-4.2 \ sources if there is no sources, create a new one)

The reason for creating a sources folder is that

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/0J0412034-3.png "border =" 0 "alt =" "/>

The default source code connection directs to the sources folder.

 

Then you will find

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/0J041NB-4.png "border =" 0 "alt =" "/>

Now, you can view the Android source code at any time using Eclipse.

This article from the "wIsper technology into art" blog, please be sure to keep this source http://lichen.blog.51cto.com/697816/1076141

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.