本文介绍了无法启动uiautomatorviewer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有:

  • Android SDK工具,修订版22

  • Android SDK Tools, Revision 22

Android SDK平台,API 18

Android SDK Platform, API 18

我转到<android-sdk>/tools/,我看到有一个名为"uiautomatorviewer"的文件,

I go to <android-sdk>/tools/ , I see there is one file named "uiautomatorviewer",

我在上述路径下从终端执行命令uiautomatorviewer,但是却收到以下消息:

I execute command uiautomatorviewer from terminal under the above path, however I got the following message:

uiautomatorviewer: command not found

为什么?

推荐答案

因为您的tools/目录不在您的PATH中.使用./uiautomatorviewer或在PATH中添加tools/(可能还添加platform-tools/.请注意,这与编程无关,而与* nix样式的OS(Linux,OS X等)也有关系. ).

Because your tools/ directory is not in your PATH. Either use ./uiautomatorviewer or add tools/ (and probably platform-tools/ to your PATH. Note that this has nothing to do with programming and everything to do with your *nix-style OS (Linux, OS X, etc.).

这篇关于无法启动uiautomatorviewer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 21:37