Recently, I have always helped others build an android development environment. Because the networking is required during the building process, it will be a bit slow after several times! Therefore, it is not complicated to check the information on how to build an android Development Environment offline. After many experiments, it is feasible. Now, I will take it out and hope it will be useful to everyone.
Description 1
You may encounter the following two problems when installing the plug-in provided by eclipse and updating the SDK provided by Android:
① Encrypted HTTPS transmission is often blocked;
② Even if the server is abroad, the update speed is very slow.
Therefore, the offline architecture of the android development environment has its own significance.
The meaning of the offline architecture referred to here is: Add ADT and Android-SDK offline on the basis of eclipse installation.
2. Preparation
Offline installation requires the following files:
Android-10 and Android-15 are Android API files (of course, you can also add other versions of pai_^ ),
Extras is a library file supported by Android,
Adtplugin is the ADT plug-in of Eclipse,
Installer_r20.0.3-windows.exe is the SDK installation software,
Platform-tools_windows.zip is the tool file for Android platform.
All the above files can be downloaded from the Internet (the URL is provided later ).
Step 3 install ADT
Open Help-> install new software to install the plug-in.
Figure 1 Software Installation
Enter any name in name to open archive. Note that before this step, you must ensure that the network is disconnected; otherwise, the dependency detection will get stuck.
Figure 2 open the software installation window
Figure 3 select file window
Select the ADT plug-in for installation. ZIP format. If it is normal, the following screen will appear after verification:
Figure 4 installation option window
Confirm the installation after you select all.
Error handling:
If an error occurs, check whether the network is disconnected:
①
Click "available software sites ",
Figure 5 available software sites
Delete all content in the pop-up window:
Figure 6 remove all URL Information
If the problem persists, use the following method.
②
Click "already installed ",
Figure 7 already installed
The following window is displayed:
Figure 8 removal options
Select
Android ddms
Android development tools
Androidhierarchy Viewer
Android traceview
Tracer for OpenGL ES
Or several of them, delete.
Then reinstall ADT.
2. Install the SDK
You can directly click installer_r00000.3-windows.exe to install it, which is the same as installing common software.
3. Set SDK location
Select WINDOW> preferences
Figure 9 preferences
Figure 10 configure SDK location
Click Browse and select the SDK installation directory.
Note: If you first install the SDK and then install the ADT, you can skip the manual setting and the system will automatically set it.
4. Add an API File
Open the SDK installation directory and copy Android-10 and Android-15
Under the platforms folder.
Figure 11 copy an API to platforms
5. Add platform tools
Decompress platform-tools_windows.zip to the SDK directory.
6. Add an extras File
Copy the extras folder to the SDK directory.
The result of the SDK installation directory is as follows:
Figure 12 Final Style
7. Restart eclipse
8 supplement
Virtual Machine Directory change:
Add the environment variable android_sdk_home. The variable value is the virtual machine storage path.
9. Download link
Because the size of the uploaded file is limited, only links can be provided.
JDK download: http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html
Eclipse download: http://www.eclipse.org/downloads/
SDK download: http://developer.android.com/sdk/index.html
ADT download: https://dl-ssl.google.com/android/eclipse/
(Eclipse update)
Complete.
Water to soft, invincible, with its invisible.