Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Configuring the ANT environment report in UIAutomator is not an internal or external command

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report