Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The Android SDK source code installation is like this

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Android SDK source code installation is like this, I believe that many inexperienced people do not know what to do about it, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Android SDK source code installation. Mainly to understand and learn the contents of Android SDK, mainly introduces in the linux and windows platform, how to download Android SDK source code, pay attention to the sdk source code, not all the source code of android, while introducing how to add the Android SDK source code to eclipse, so that android platform mobile developers can directly view the source code, by reading the SDK source code, can better understand and use Android API.

1. Environment. Linux2.6,Python2.4.3 or windowsXP

2. Tools. Mainly use the git tool to download Android SDK Source.

(1) the git tool under Linux can be downloaded from http://git-scm.com/, which is the core code management tool of linux.

The installation process is as follows:

Tar-xvfgit-1.6.6.tar.bz2. / configure make makeinstall

(2) installation under Windows is the same as installation of other applications.

Download Git under Windows:

Http://code.google.com/p/msysgit/downloads/list

The current * version is: msysGit-fullinstall-1.7.1-preview20100612.exe31.6MB

3. Download the Android SDK source code

The Windows version of Git provides two different modes of operation: Linuxshell command line and GUI graphical interface.

When installing with the default installation options, the Git icon added on the desktop is to start using the shell command tool, and the operation instructions and usage rules are the same as under Linux

Mkdirandroid_sdk_src establishes a directory to store Android SDK source files

Cdandroid_sdk_src enters the newly created directory

Download Android SDK source code from gitclonegit://android.git.kernel.org/platform/frameworks/base.git

Attach a description of the distribution of Android resources:

Http://source.android.com/projects#TOC-External-projects

Git resources for Android:

Http://android.git.kernel.org/

Git Chinese course:

Http://www.bitsun.com/documents/gittutorcn.htm

Download address of Git:

Http://code.google.com/p/msysgit/

It is very clear on http://android.git.kernel.org/ 's home page.

If you want to get part of the git resource (Tocloneoneofthesetrees,installgit,andrun:), use the

Gitclonegit://android.git.kernel.org/+projectpath.git

Attach the method of downloading the entire Android SDK

The repo script is available at http://android.git.kernel.org/repo.

Use the curl command to download and deploy this script

Curl http://android.git.kernel.org/repo>/bin/repo curl http://android.git.kernel.org/repo>~/bin/repo chmoda+x~/bin/repo mkdirmydroid cdmydroid repoinit-ugit://android.git.kernel.org/platform/manifest.git reposync

The second part is how to attach the source code to eclipse.

For detailed configuration methods in this section, please see

Http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/

This article is quoted as follows:

1. Create a new sources directory under your SDK directory, where your android.jar is located, and copy the folder android and com under base\ core\ java\ in the downloaded source code (the root directory of my source code is base) under sources. The specific directory structure is as follows

Android SDK path

| | android.jar +-- docs/... +-- samples/... +-- sources +-- android |... accounts,annotation,app,bluetooth,etc... | +-- com/android/etc... +-- dalvik/... +-- java/... +-- javax/...

2. Then reopen eclipse to complete the attachment of the source code.

After reading the above, have you mastered the method of Android SDK source code installation? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report