Appium (a): java environment, AndroidSDK environment

1. java environment

java download and install can see I used to write Java Basics: " java download and install ."

2. AndroidSDK environment

2.1 AndroidSDK Download

We enter: https://www.androiddevtools.cn/ , you can see there are a variety of tools needed to develop Android, first find the SDK Tools.

 

Choose a new version on the line. Note that there are exe zip and two file available for download, is a exe installer, double-click the downloaded needs its own installation. It is recommended to download zip archive, download, unzip directly to the path you want to install Android on the line.

After extracting file directory as follows:

Then open the "SDK Manager.exe", start the SDK Manager.

 

 

To see so many to choose when to install, is not it sometimes a little I do not know Zaban ah. Here I can only say a few must be installed, as shown above, Tools folder inside the Android SDK Tools (which we have been downloaded in the previous step well, generally will not let you install, but there are may make you update), then that is Android SDK Platform-tools and Android SDKBuild-tools, pay attention only need to download the latest version on the line.

Then it is to choose the API's. We can see here a lot from Android 2.1 to Android 10's many versions of the API, then how to choose it. Here I suggest a novice, then select a new version just fine, because Android is downward compatible. After you use the other to download on the line (because the speed is too slow to download and install it.). Therefore, as shown above, and here I only chose to download the latest Android currently 10 (API 29).

The caveat here is that if you do not plan to use the simulator debugger, but has been a real machine to debug, then you can not install "system images" of. But the novice, I do not know how to choose, it is recommended that all direct hook on it.

Last is the extras folder of things, all the downloads!

Then click on the bottom right corner of the install, choose to forget screenshots inside. . .

2.2 Configuration Environment Variables

After put in the current directory, we want to start the configuration environment variable. It should be the "\ platform-tools" and "\ tools" appended to the system path environment variable Path in.

First, create a system environment variable called ANDROID_HOME, variable value of your SDK installation path, where my installation path is D: \ Program Files \ Android-SDK \ android-sdk-windows.

After then is Path variable of the system, additionally% ANDROID_HOME% \ platform-tools;% ANDROID_HOME% \ tools ;.

Then we can test Android SDK is installed successfully: Enter "adb version" in the command line window, the following screen appears, the installation was successful.

Guess you like

Origin www.cnblogs.com/liuhui0308/p/11978185.html