Android SDK Offline installation

Source: Internet
Author: User

The Android SDK offline installation is the content of this article, mainly to learn and learn about the Android SDK installation content, specifically about how the Android SDK is installed offline in this article.

Android development environment, complete including JDK,ECLIPSE,ANDROIDSDK and Adtplugin. The most troublesome of the four is the installation of the Android SDK, now Google's strategy is to separate the SDK and platform, so the online installation of the Android SDK will let you choose to choose the version of the platform version and other components of the SDK.

Android SDK download during the installation process, if the network speed is too slow or a firewall on the Internet will often cause the entire installation to fail. If you understand the internal implementation of the Android SDK installation, the offline installation is also very simple. The entire installation process is simply to extract the components of your choice into the appropriate folder. For different situations, there are two different installation methods:

Before installing the Android SDK:

1. Proper installation of JDK5 or JDK6 (only JRE is not enough), official: Jdk5orjdk6.

2.eclipse3.5 and above version correct installation, official: Eclipse3.6.2, recommended to use the Eclipseideforjavadevelopers version, the smallest file, unzip the green version can be used.

3. From ADT8.0 onwards, the Android Sdk,adt version is one by one corresponding, such as ADT11.0.0 corresponding sdkr11,adt10.0.0 and 10.0.1 corresponding SDKr10. More detailed version correspondence can be found in the system requirements. The versions used in this article are eclipse3.6.1,sdkr11,adt11.0.0.

Copy and install the Android SDK

In the first case, if you already have a machine with the Android SDK installed, all you have to do is to make a package of all the files under the Android SDK folder and then copy it to your machine and unzip it. As shown, Platforms,platform-tools,tools and sdkmanager are essential to ensure that the above three folders contain the corresponding version of the tools and components.

It is easier to install ADT, first selecting the appropriate ADT package in the official adtplugin, such as ADT11.O.O's address is adt-11.0.0.zip. After you download to local, open the menu "help" in eclipse Installnewsoftware "Enter the Software Installation interface, click on the" Add "button," Archive "button, select the ADT installation package, enter a name in the name line as the tag, as shown in:

Then click OK to install, after installation, remember to tell eclipse the installation path of the Android SDK to open the Eclipse menu item windows->preference->android-> Sdklocation points to the path that the SDK stores after decompression.

Finally, remember to add the environment variable, set the Sdk_home variable to the SDK decompression path, such as D:\ANDROID\ANDROID-SDK, and then add the specific sub-path settings to the path variable,%sdk_home%\tools;% Sdk_home%;%sdk_home%\platform-tools;

Now that the entire installation process is complete, you can open a project and then run to see if the emulator is able to execute your program properly.

Manually download and install the Android SDK

If, unfortunately, you can't get the Android SDK already installed, it might be a bit more than that. The key is to run the Official SDK installation files offline, only to ensure that some of the files, the rest of their own manual to download. The following steps are described below:

1. Download the Android SDK installation package, based on the latest version of the Windows operating system link address is Installer_r11-windows.exe, click Install, the installation path of the Android SDK is assumed to be D:\Android\ Android-sdk. At the end of the installation of the Android SDK, the system will automatically open the Sdkmanager and close directly, then we manually add the corresponding components.

2. The complete Android SDK should also include tools in the Android library (included in the Platform folder), Platform-tools and tools. We need to manually download and unzip to the appropriate folder. To get the link address of these components of the Android SDK, just open repository.xml, for example, for the Android library, we can find this section:

This section describes the 2.3.3 version of the Android library corresponding to the link address is android-2.3.3_r01-linux.zip (although the file contains Linux, in fact, for all operating systems); Manually download and extract to D:\Android\ The Android-sdk\platform folder.

then corresponding, respectively download tools and Platforms-tools compressed files into these two folders, sample code samples and doc is not required, according to their own need to selectively download.

3. The next steps are exactly the same as in the first case, install ADT, set the Android SDK Path, and set the environment variables.

Summary:

Android SDK offline installation of the content is finished, I hope that the Android SDK offline installation of content learning can help you!

Android SDK Offline installation

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.