"Go" Download Android.jar Source Code using the Git tool

Source: Internet
Author: User

In order to develop an Android application, it was found that the SDK did not have source code at development time, so it was too cumbersome to develop, and here is how to download the source code and how to configure it.

Download the source code requires git, first download a git. The following actions are done under Windows.

After installing GIT, clone git://android.git.kernel.org/platform/frameworks/base.git framework via Git

Then run the CD framework

Then run git tag and show the branch because Android has many versions, such as getting

>git tag

android-1.0

android-1.5

Android-1.5r2

Android-1.5r3

Android-1.5r4

Android-1.6_r1

android-1.6_r1.1

android-1.6_r1.2

android-1.6_r1.3

android-1.6_r1.4

Android-1.6_r2

Android-sdk-1.5-pre

Android-sdk-1.5_r1

Android-sdk-1.5_r3

Android-sdk-1.6-docs_r1

Android-sdk-1.6_r1

Then use

git checkout android-1.5r4 switch to the emulator (emulator) corresponding version

Finally, copy the Java files under Framework/core/java to D:\\android-sdk-windows\platforms\android-1.5\sources

is the corresponding platform under the SDK directory under sources.

Then restart eclipse so you can see the code for the SDK.

"Go" Download Android.jar Source Code using the Git tool

Related Article

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.