Android SDK Installation Notes

Source: Internet
Author: User

As the saying goes, 工欲善其事 its prerequisite, for just getting started with Android programming, the first step is to build an Android development environment. Although there are a lot of tutorials online, but I still spent the whole morning to install the Android SDK, the main reason for the slow speed is that my big celestial visit to the Android official website speed is really let me crash inside, so this article is used to record the process of installing the Android environment and the use of the image.

The Android SDK is a Google-provided Android development Kit, which we need to use for Android-related APIs when developing Android programs.

First we need to obtain the Android SDK installation package, which can be directly searched for download through the Baidu Software Download Center. After the file download is complete, the following directory will be available:

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/A5/E1/wKioL1nEr3Kw7BtCAABDHIeyVm0080.png "title=" 001_. PNG "alt=" Wkiol1ner3kw7btcaabdhieyvm0080.png "/>

Double-click Run SDK Manager.exe, the installation window appears

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/A5/E1/wKioL1nEr8CBGVZzAABamwrQ2IY474.png-wh_500x0-wm_ 3-wmp_4-s_2557454662.png "title=" 004_.png "alt=" Wkiol1ner8cbgvzzaabamwrq2iy474.png-wh_50 "/>

At this time if not to take some measures, it is expected to wait until the everlasting, so decisive to look for the image online, find a few good online update Android SDK mirror server:

    1. Beijing University mirror server address:

    • IPV4: ubuntu.buct.edu.cn/ Port: 80

    • IPV4: ubuntu.buct.cn/ Port: 80

    • IPV6: ubuntu.buct6.edu.cn/ Port: 80

Dalian Neusoft Institute of Information Mirror server address: mirrors.neusoft.edu.cn Port: 80 Zhengzhou University open source Mirror station: mirrors.zzu.edu.cn port: 80 Click Tools→options on the toolbar

The following screen appears:

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/A5/E1/wKioL1nEsaugLeAZAABHf7a7SQk767.png "title=" 005_. PNG "alt=" Wkiol1nesaugleazaabhf7a7sqk767.png "/>

In HTTP proxy server and HTTP proxy port, fill in the port number of the mirror address above, then tick Force https://..., click Close

Then select Packages→reload in the toolbar and wait a moment for the interface to appear as follows:

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/07/30/wKiom1nEsvCCWt2xAAC9nXgnWEY111.png-wh_500x0-wm_ 3-wmp_4-s_2649220315.png "title=" 006_.png "alt=" Wkiom1nesvccwt2xaac9nxgnwey111.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/A5/E1/wKioL1nEstGwQA_RAACeR48WI2M489.png-wh_500x0-wm_ 3-wmp_4-s_2134787227.png "title=" 007_.png "alt=" Wkiol1nestgwqa_raacer48wi2m489.png-wh_50 "/>

To see so many files, in theory, the choice is very good, but just beginning to contact Android, select part of the good, after all, this is online download, and download speed is moving.

Under the Tools folder, select Android SDK Tools, Android SDK Platform-tools and Android SDK Build-tools (choose the latest version), then under Android Choose the latest version in the API, because Android is backwards compatible, and the rest is good to download.

When you're done, click Install ... packages in the lower right corner to enter a confirmation installation interface:

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/A5/E2/wKioL1nEtPXRodxQAAB-LQBbEj8463.png-wh_500x0-wm_ 3-wmp_4-s_4036657426.png "title=" 010_.png "alt=" Wkiol1netpxrodxqaab-lqbbej8463.png-wh_50 "/>

Check the lower right corner of the accept License, and then click Install, the next is a long waiting process, you can go for a cup of coffee, if you choose a lot of SDK, then congratulations, you can go to sleep.

If you will be scientific Internet, the speed should be faster, in short, will be installed in the end 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0057.gif "alt=" j_0057.gif "/>

The last step is the configuration of the environment variables, the configuration of the JDK friends should be no problem, if you have not configured any environment, this is not complex, a learning will, the steps are as follows:

1. Right-click My computer → select Properties → select advanced system settings → check environment variables

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/07/31/wKiom1nEuHuSm7MXAADI7yCsGLw471.png-wh_500x0-wm_ 3-wmp_4-s_2041782911.png "title=" 012_.png "alt=" Wkiom1neuhusm7mxaadi7ycsglw471.png-wh_50 "/>

2. Then select New under the System variable box, fill in the variable name: android_sdk_home, then the variable value for your Android SDK storage path, click OK

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/07/31/wKiom1nEuWCB-DS9AAAkWtz8pO8664.png "title=" 013_. PNG "alt=" Wkiom1neuwcb-ds9aaakwtz8po8664.png "/>

3. finally select the PATH variable of the system , Click New, write:%android_sdk_home%\platform-tools\

Click OK , and then create a new one, write: %android_sdk_home%\tools\, click OK

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/07/32/wKiom1nEuzPCA3tlAAANhiuvOxQ596.png "title=" 014_. PNG "alt=" Wkiom1neuzpca3tlaaanhiuvoxq596.png "/>

Now that the installation of the Android SDK is complete, we check that the environment is configured successfully: Windows+r key, enter CMD to open the Command Line window, enter ADB directly, then enter, show that the environment is configured successfully

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/A5/E3/wKioL1nEvArSVcZwAABMZms4-cE383.png "title=" 015_. PNG "alt=" Wkiol1nevarsvczwaabmzms4-ce383.png "/>


If the information is successful, the installation is OK, if the ADB is not an internal or external command prompt, it indicates that the environment is not configured, and then re-examine the above steps, especially the configuration of environment variables, any one "\" or ";" are likely to cause an error.

Finally finished, the class will be late ... 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0010.gif "alt=" J_0010.gif "/>


















This article from "Guardian" blog, reproduced please contact the author!

Android SDK Installation Notes

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.