Android SDK offline Installation

Source: Internet
Author: User

Android SDK offline InstallationIs the content to be introduced in this article, mainly to understand and learnAndroid SDKInstallation content, detailsAndroid SDKHow is itOffline InstallationFor more information, see this article.

Android development environment. The complete description includes JDK, Eclipse, AndroidSDK, and ADTplugin. The four most troublesome problems are the installation of the Android SDK. Now google's policy is to separate the SDK from platform, therefore, when you install the Android SDK online, you are required to select the version of platform and other SDK components.

During the Android SDK download and installation process, if the network speed is too slow or the network has a firewall, the entire installation may often fail. If you understand the internal implementation process of Android SDK installationOffline InstallationIt is also very simple. The entire installation process is to download and decompress the selected component to the corresponding folder. There are two different installation methods for different situations:

Preparations before installing the Android SDK:

1. correct installation of JDK 5 or JDK 6 is not enough.) official: JDK 5 or JDK 6.

2. Eclipse3.5 and later versions are correctly installed. Official: Eclipse3.6.2. We recommend that you use EclipseIDEforJavaDevelopers. The minimum file size is. You can decompress the file to use the green version.

3. Starting from ADT8.0, the Android SDK and ADT versions correspond one to one. For example, ADT11.0.0 corresponds to SDKr11, ADT10.0.0 and 10.0.1 both correspond to SDKr10. for more detailed version ing relationships, you can check the system requirements. The versions used in this article are Eclipse3.6.1, SDKR11, and ADT11.0.0.

Copy and install Android SDK

In the first case, if a server has been installedAndroid SDKAll you need to do is pack all the files in the Android SDK folder and copy them to your machine to decompress the package. As shown in, platforms, platform-tools, tools, and SDKManager are essential. Make sure that the preceding three folders contain tools and components of the corresponding version.

Android SDKOffline InstallationInvalid. after downloading the package to your local computer, open "Help"> "InstallNewSoftware" in Eclipse To Go To The software installation page. Click "Add"> "Archive" and select the ADT installation package, enter a Name as the tag in the Name line, as shown in:

Click "OK" to install the SDK. After the installation is complete, you must inform Eclipse of the installation path of the Android SDK, choose "Windows"> "Preference"> "Android"> "SDKLocation" from the Eclipse menu, and point to the path stored after the SDK is decompressed.

Finally, remember to add the environment variable and set the SDK_HOME variable to the SDK decompression path, such as D: \ Android \ android-sdk, then add the specific sub-PATH settings to the PATH variable, % SDK_HOME % \ tools; % SDK_HOME % \ platform-tools;

Now,Android SDKOfOffline InstallationThe installation process is complete. You can open a project and run it to see if the simulator can run your program normally.

Manually download and install the Android SDK

If, unfortunately, you cannot get the installed Android SDK, it may be a little more expensive than above. The key is to run the official SDK installation files offline. only part of the files can be ensured, and the remaining files must be manually downloaded and supplemented. The following steps are described:

1. Download the Android sdkinstallation package, and click installer_r11-windows.exe in the latest link address of the Windows operating system. Click Install. The installation path of the Android SDK is D: \ Android \ android-sdk. After the Android SDK is installed, the system automatically opens the SDKManager and closes it directly. Next, we add the corresponding components manually.

2. The complete Android SDK should also include the Android library in the platform folder), tools in platform-tools, and tools. We need to manually download and decompress the package to the corresponding folder. To get the link address of the Android SDK components, you just need to open javasrepository. xml. For example, for the Android library, we can find the following content:

In this example, the link address of Android 2.3.3's android library is android-2.3.3_r01-linux.zip (the file contains linux, but it is actually for all operating systems). Download and decompress it to the D: \ Android \ android-sdk \ platform folder.

Download the compressed files of tools and platforms-tools to these two folders respectively. The sample code samples and doc are not required. Download them as needed.

3. The next step is exactly the same as the first case. Install ADT and setAndroid SDKPath to set environment variables.

Summary:

Android SDK offline InstallationThe contentAndroid SDK offline InstallationContent learning is helpful to you!

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.