Download Android. Jar source code using git

Source: Internet
Author: User
Reprinted from doyee and finally edited doyee

To develop Android applications, the SDK does notSource codeIn this way, it is too troublesome during development. The following describes how to download the sourceCodeAnd how to configure.

Git is required to download the source code. Download a git first. The following operations are completed in windows.

After installing git, run git clone git: // android.git.kernel.org/platform/frameworks/base.git framework

Then run the CD framework

Run the GIT tag to display the branch. Because android has many versions

> 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 version corresponding to the simulator (emulator)

Finally, copy the Java file under framework/CORE/Java to D: \ Android-SDK-Windows \ platforms \ Android-1.5 \ sources.

Is the sources under the SDK directory of the corresponding platform.

Then restart eclipse to see the SDK code.

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.