UIAutomator environment configuration
1. JDK configuration
JDK must be above version 1.6
Create a new in the system variable:
Variable name: JAVA_HOME
Variable value: d:\ java\ jdk1.7.0_79
Edit the system variable path to add two paths at the end: (remember that each path is separated by a semicolon)
% JAVA_HOME%\ jre\ bin;%JAVA_HOME%\ bin
2. Android-adk configuration
Create a new in the system variable:
Variable name: ANDROID_HOME
Variable value: d:\ adt-bundle-windows-x86-20140702
Edit the system variable path to add two paths at the end: (remember that each path is separated by a semicolon)
% ANDROID_HOME%\ platform-tools;%ANDROID_HOME%\ tools
3. ANT configuration
Download and then decompress
Create a new one in the system variable: (the value of the variable depends on the directory decompressed by everyone)
Variable name: ANT_HOME
Variable value: d:\ tools\ apache-ant-1.9.5
Edit the system variable path to add ant paths at the end: (remember that each path is separated by a semicolon)
%: ANT_HOME%\ bin
4. Restart cmd
Restart CMD, enter
The following message appears in ant-version indicating that the installation is successful