@[toc]

preface

At present, the mobile terminal market is almost occupied by android and IOS two mainstream camps. Here I mainly explain the configuration and installation of the Android SDK environment

Download the android SDK

Here I provide two places to download the SDK

Download the SDK softonic

Tencent open platform to download SDK

Configuring environment Variables

The first step

Let’s first set an environment variable named ANDROID_HOME, and then write the variable value as D:\JavaTools\androidSDK. Of course this is the folder where I installed my SDK. %ANDROID_HOME%\platform-tools = %ANDROID_HOME%\platform-tools = %ANDROID_HOME%\platform-tools = %ANDROID_HOME%\platform-tools

The second step

In the first step, we have created a new variable ANDROID_HOME. We also need to create a new variable in the PATH %ANDROID_HOME%\emulator. What is in the emulator folder? Let’s take a screenshot

One might ask thatANDROID_HOMECan you choose other names? It’s best not to choose any names, because the Android environment is discriminating on the name!

Note that new versions of the Android SDK need to be configured to the Emulator folder, while older versions of the Android SDK environment variables are configured to the Tools folder. For the new SDK, only the emulator.exe in the emulator can be used! The emulator. Exe in tools has a problem!

The third step

Now you can configure the avD environment variable. If you set the AVD environment variable, when creating a new AVD device, Android will not create a folder on drive C by default and save the device information in it. It will find the folder pointed to by the AVD environment variable and save it in it. Create a variable ANDROID_SDK_HOME and set the variable D:\JavaTools\androidSDK\androidAVD. Note that the androidAVD folder is newly added by myself and you can add it anywhere you want. I suggest adding it directly to the downloaded Android SDK for easy searching, and then also directly configuring the PATH, %ANDROID_SDK_HOME, and then creating the emulator where it will automatically generate.android files and AVD files

Also do not arbitrarily select this variable name, because android emulation will find the path when starting, the default is the following order:

  • $ANDROID_AVD_HOME
  • $ANDROID_SDK_HOME/.android/avd/
  • $HOME/.android/avd/

other

AS for the update of SDK-related programs, one can be directly updated by SDK Manager.exe, two can also be updated by an instruction in SDK readme. TXT file, and the other can be configured into IDEA or AS, and then be confirmed step by step according to the wizard