Configuring the ant environment in Uiautomator is not an internal command with an external command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.