The first article has successfully installed the Appium, and because the previous use of Monkeyrunne has been configured with a basic Android test development environment (JDK, SDK) and set the environment variables, but not enough.
This is mainly the configuration of environment variables: Android, Appium, and update Sdkmanager.
1. Add an Android environment variable
"My Computer" right-click menu---> Properties---> Advanced---> Environment variables---> System variable--> new.
Android_home value is: SDK Directory
Locate the path variable name-> edit add:
PATH value is;%android_home%\platform-tools;%android_home%\tools;
2. Configure Appium Environment variables
Add appium installation directory to path
Increase the appium\node_modules\.bin of the Appium installation directory to path
Verification: Appium can start appium,appium-doctor all Checks were successful successful
3..SDK Manager Installation Simulator
Sdk-sdk Manager.exe, double-click the program-tools-options ... Set the following (reference URL http://www.androiddevtools.cn/):
Start the update. (4.2 is all updated on the line, because Appium requires a minimum version of the phone or simulator 4.2). Wait a long time until the installation is complete.
There is also an easy way: If you can find the above installation package, you can download it and put it in the appropriate directory, can save a lot of time. (You can also save the content after the update can be stored directly in the directory next time)
Take 4.4.2 as an example, look at the corresponding directory relationship.
A.SDK Platform
Android Development required SDK platform, under platforms
B.samples for SDK
This is the sample code from the Android SDK, under the .../android-sdk-windows/samples folder
Candroid Framework Source Code
This is the Android Framework Source code, under the .../android-sdk-windows/sources folder
D.SDK System Images
This is the system image required when creating the emulator, under the .../android-sdk-windows/system-images folder
Cmd:android AVD creates a 4.4.2 version of the simulator.