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