2. SDK download, installation, configuration

1. Download SDK

1. Download address:

http://tools.android-studio.org/index.php/sdk

image-20210110180253278

2. After the download is complete, click Run to install, the following is a screenshot of important steps as follows

image-20210110180530569

image-20210110180600261

Two, select the installation content

Special note: delete the cache .android folder in C:\Users\Administrator, restart Android SDK Manager, otherwise the download will fail

1. Android SDK Tools in the Tools folder (the previous step has already been downloaded, and there is generally no need to install it again, but it may let you update), the content of the red box must be installed.

img

2. Choose a certain version of Android API, because Android is downward compatible, here I download the latest version. You can choose according to your actual needs.

åœ¨è¿ ™ é ‡ Œæ ?? 'å ¥ å ›¾ç ‰ ‡ æ ???? è¿ °

3. The contents of extras can be downloaded if time permits. Download Android Support Repository and Google USB Driver if not allowed.

åœ¨è¿ ™ é ‡ Œæ ?? 'å ¥ å ›¾ç ‰ ‡ æ ???? è¿ °

4. After selecting the content, start the installation

image-20210110183229411

image-20210110183304902

Three, the installation is complete, configure environment variables

The following is windows10 as an example

1. Create a new environment variable, variable name: ANDROID_HOME, variable value: subject to your installation directory (mine is D:\Program Files (x86)\Android\android-sdk), confirm that there are tools and add-ons, etc. Multiple folders, click to confirm.

image-20210110203821878

2. Modify the PATH environment variable: New

%ANDROID_HOME%\tools
%ANDROID_HOME%\platform-tools
%ANDROID_HOME%\build-tools\29.0.3

image-20210110203848680

2. Verify that the configuration is successful

Enter adb test in cmd

image-20210110205217857

Guess you like

Origin blog.csdn.net/csweldn520/article/details/112442599