Step three, download and install ANDROIDSDK
In the first two steps, we have configured the JDK variable environment and installed Eclipse, and after these two steps, the Java development environment is ready, if we just develop a common Java application, then here we are. But if we're going to develop an Android app through Eclipse, we'll also need to download the Android SDK (software development Kit) and install the ADT plugin on Eclipse.
First, download the Android SDK Tools, and the friends who have turned over the wall can go to Google Android's official web download (http://developer.android.com/sdk/index.html). Do not want to FQ friend, can go to my BD disk download (Http://pan.baidu.com/s/1nt8BcBB), or go to this website (http://www.androiddevtools.cn/). Here is a look at the situation on this site, first open http://www.androiddevtools.cn/, we can see that there is a variety of Android development tools required, first find the SDK tools:
Choose the latest version on the line. Note that there are EXE and zip two files available for download, EXE is a setup program, download it needs to double-click installation. It is recommended to download the zip archive, download it and unzip it directly to the path you want to install on Android. The extracted file directories are as follows:
Then double-click on "SDK Manager.exe" to launch the SDK Manager:
See there are so many need to choose the installation of time, is not a moment a bit dizzy saw stars do not know how to do ah ... Especially for the heavy-choice phobia like Neo, it really feels like the head is going to explode ... This time, must keep calm.
Here I only say a few must install, as shown in, the Tools folder inside the Android SDK tools (which we have already downloaded in the previous step, generally will not let you install again, but may let you update), then the Android SDK Platform-tools and Android Sdkbuild-tools, note that just download the latest version on the line.
Then there is the choice of the API. We can see that there are many versions of the API available from Android 2.2 to Android 5.x, so how to choose. Here I suggest, novice words, choose a latest version just fine, because Android is backwards compatible. Other later you have to use the download on the line (because the speed of downloading the installation is too slow ...) )。 So as shown here, I only chose to download the current latest Android 5.1.1 (API 22). What needs to be explained here is that if you do not intend to use the simulator to debug, but always use the real machine to debug, then you can not install "system images". But novice words, do not know how to choose, or suggest directly all hook up,
The last thing in the Extras folder is, as shown,
Theoretically speaking, if the speed of the extras is allowed, the time is abundant, it is all downloaded, should be good things. But at first, you can use only three of the installation, Android support Repository, Android Supportlibrary, and Google USB Driver. Others have time to download it later.
The next step is to install it. Be aware that these things are downloaded on Google's servers. As we have a wall in the celestial world, there may be situations that are not connected, such as:
At such times, we can download the installation through a domestic mirror server with the Android SDK, here are a few recommended:
1, CAS Open Source Association Mirror station Address:
ipv4/ipv6:http://mirrors.opencas.ac.cn Port: 80
2. Beijing University mirror server address:
ipv4:http://ubuntu.buct.edu.cn/Port: 80
ipv4:http://ubuntu.buct.cn/Port: 80
ipv6:http://ubuntu.buct6.edu.cn/Port: 80
3, Dalian Neusoft Institute of Information Mirror server address:
http://mirrors.neusoft.edu.cn Port: 80
Just pick one. Here I choose is the third site, that is, the image of the east of Dalian, the use of the following methods:
First, click "Tools" in the menu, then select "Options ..." in the dropdown,
Then in the dialog box that pops up, fill in the HTTP proxy server as mirrors.neusoft.edu.cn (the address of the mirror server, note that the front does not add HTTP), and then fill in the HTTP proxy port 80 (port number). Finally, check the following "forcehttps://... sources to befetched using HTTP://..." check box, as shown in
Then click Close, Close the dialog box, and then restart the SDK manager.
After a long download installation process (recommended to go to bed at night to download ...) , we can see that the status behind the previously selected items is changed from "Notinstalled" to "installed", which means that we have successfully installed it! Is there any excitement? Ps.. Brush your teeth and wash your face to work. Be late ...
Because the direct use of the SDK Manager online download installation, very long, if you do not want to wait for such a long friend, you can go to the domestic site (http://www.androiddevtools.cn/) to download the need to install the package, This way is much faster, but is to pay attention to choose the package you need to download and the corresponding version, here is not detailed, there is a choice of fear of boron oil can give me a message.
Ok, and then the last step, we are familiar with setting environment variables. The "\platform-tools" and "\tools" paths need to be appended to the system environment variable path, as follows:
First of all, create a new system environment variable named Android_sdk_home, the variable value is your SDK installation path, here my installation path is D:\ANDROID\ANDROID-SDK,:
Then, after the system's path variable, append;% android_sdk_home%\platform-tools;% Android_sdk_home%\tools,:
Then we can check if the Android SDK is installed successfully: enter "ADB version" in the Command line window, and the installation is successful if the following appears:
[Android Development Article] [Android Studio and Elipse both require the installation of the Process Android SDK