The various types of environment configurations that are configured in Uiautomator today are based on the documentation,
Result input in cmd: ant-version
Page report ant is not an internal command, instant dumbfounded, I was not configured error Ah, the result and re-looked at the document, or not wrong, but after the input command, or always error;
1. Configuration environment:
New :( variable value in system variable depends on each person extracting the directory )
Variable name : Ant_home
Variable Value :D: \tools\apache-ant-1.9.5
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/5C/wKioL1XMfBbRBHhxAACHWZsDef8978.jpg "title=" 1.png " alt= "Wkiol1xmfbbrbhhxaachwzsdef8978.jpg"/>
Edit System variable path add ant path at the end :( Remember each path is separated by semicolons )
%:ant_home%\bin;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/5C/wKioL1XMfE7CeIppAACHCqxoaqw504.jpg "title=" 2.png " alt= "Wkiol1xmfe7ceippaachcqxoaqw504.jpg"/>
I still think it's not wrong to read these.
The result is run again or report: ANT is not an internal instruction.
Later in a number of not forget, changed path path, without %:ant_home%\bin, replaced by absolute path: D:/apache_ant_1.7.1/bin
Run cmd again and execute successfully:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/71/5C/wKioL1XMfYyjFVlrAAAfM6O9Q-M380.gif "title=" 3.gif " alt= "Wkiol1xmfyyjfvlraaafm6o9q-m380.gif"/>
It turned out to be path not recognized:%:ant_home%\bin path
Configuring the ant environment in Uiautomator is not an internal command with an external command