无法启动uiautomatorviewer

Mel*_*lon 13 performance android android-intent android-layout android-uiautomator

我有 :

  • Android SDK工具,修订版22

  • Android SDK平台,API 18

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

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

uiautomatorviewer: command not found
Run Code Online (Sandbox Code Playgroud)

为什么?

Les*_*sek 53

请注意,uiautomatorviewer可执行文件已在SDK Tools Revision 25.3.0(2017年2月)更新中移至新位置<android-sdk>\tools\bin


Com*_*are 13

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