Configuring the ANT environment report in UIAutomator is not an internal or external command
The various types of environment configurations in today's configuration UiAutomator are all based on the above documentation.
The result is entered in CMD: ant-version
The page reported that ant is not an internal command, which was dumbfounded in an instant. I didn't have a configuration error. As a result, I looked at the document again, and there was nothing wrong, but after entering the command, I kept reporting an error.
1. Configure the environment:
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
After reading this, I still think there's nothing wrong with it.
As a result, it is still reported that ANT is not an internal instruction when running again.
Later, after many times of not giving up, I changed the path path, instead of%: ANT_HOME%\ bin, to the absolute path: D:/apache_ant_1.7.1/bin
Run CMD again and execute successfully:
It turns out that path does not recognize:%: ANT_HOME%\ bin path