In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how to install Android SDK offline, the content is very detailed, interested friends can use it for reference, I hope it can be helpful to you.
Android development environment, including JDK,Eclipse,AndroidSDK and ADTplugin as a whole. The most troublesome of the four is the installation of Android SDK. Now google's strategy is to separate SDK from platform, so installing Android SDK online will allow you to choose which version of platform and other SDK components you need to choose.
During the download and installation of Android SDK, if the network speed is too slow or there is a firewall on the network, the whole installation will often fail. If you understand the internal implementation process of Android SDK installation, offline installation is actually very simple. The whole installation process is simply downloading and unzipping the selected components to the appropriate folder. There are two different installation methods for different situations:
Preparations before installing Android SDK:
1. Install JDK5 or JDK6 correctly (JRE alone is not enough), official download address: JDK5orJDK6.
2.Eclipse3.5 and above version is installed correctly, official download address: Eclipse3.6.2, it is recommended to use the EclipseIDEforJavaDevelopers version, the file is the smallest, decompression can use the green version.
3. Starting from ADT8.0, the version of Android SDK,ADT corresponds one to one, for example, ADT11.0.0 corresponds to SDKr11,ADT10.0.0 and 10.0.1 corresponds to 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 Android SDK
In this case, if you already have a machine with Android SDK installed, all you need to do is package all the files in the Android SDK folder and copy them to your machine to extract them. As shown in the figure below, platforms,platform-tools,tools and SDKManager are essential, so make sure that the above three folders contain the corresponding versions of tools and components.
For offline installation of Android SDK, it is easier to install ADT. First, select the corresponding ADT package in the official download address ADTPlugin. For example, the address of ADT11.O.O is ADT-11.0.0.zip. After downloading to the local location, open the menu "Help"-> "InstallNewSoftware" in Eclipse to enter the software installation interface, click the "Add" button-> "Archive" button, select the ADT installation package, and enter a name as a tag on the Name line, as shown in the following figure:
Then click OK to install. After installation, remember to tell Eclipse the installation path of Android SDK, and open the Eclipse menu item Windows- > Preference- > Android- > SDKLocation to point to the path where SDK is decompressed and stored.
Remember to add the environment variable, set the SDK_HOME variable to the SDK extraction path, such as D:\ Android\ android-sdk, and then add the specific subpath setting to the PATH variable,% SDK_HOME%\ tools;%SDK_HOME%;%SDK_HOME%\ platform-tools
Now that the offline installation of Android SDK is complete, you can open a project and run it to see if the simulator can execute your program properly.
Download and install Android SDK manually
If, unfortunately, you can't get the installed Android SDK, it may take a little more effort than above. The key is that if you run the official SDK installation file offline, you can only guarantee some of the files, and you have to download and complete the rest by hand. The following steps are described step by step:
1. Download the Android SDK installation package. The link address of the * version based on the windows operating system is installer_r11-windows.exe, and click install. The installation path of Android SDK is assumed to be D:\ Android\ android-sdk. When installing Android SDK * *, the system automatically opens SDKManager and closes it directly. Next, we manually add the corresponding components.
two。 The complete Android SDK should also include the Android library (contained in the platform folder), platform-tools, and tools in tools. We need to download it manually and extract it to the appropriate folder. To get the link addresses for these components of Android SDK, just open the links repository.xml. For example, for the Android library, we can find the following sections:
This section describes that the link address for the 2.3.3 version of the Android library is android-2.3.3_r01-linux.zip (although the file contains linux, it is for all operating systems); download and extract it manually to the D:\ Android\ android-sdk\ platform folder.
Then correspondingly, 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 selectively according to your own needs.
3. The next steps are exactly the same as in the first case, installing ADT, setting the Android SDK path, and setting environment variables.
On how to carry out offline installation of Android SDK to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.