Unable to start uiautomatorviewer

匆匆过客 提交于 2019-12-06 19:42:18

问题


I have :

  • Android SDK Tools, Revision 22

  • Android SDK Platform, API 18

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

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

uiautomatorviewer: command not found

why?


回答1:


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.).




回答2:


Please note that uiautomatorviewer executable has been moved in SDK Tools Revision 25.3.0 (Feb 2017) update to new location under <android-sdk>\tools\bin




回答3:


Navigate to tools folder, then launch terminal, launch monitor(Android Device Monitor) using ./monitor command.

ADM will get launched, left side of the window you may find .




回答4:


Just follow these steps,

Open command prompt,Go to your bin folder inside tools folder of sdk location.

Example: C:\android-sdk\android-sdk\tools\bin.

Then in cmd type uiautomatorviewer and hit enter. It would immedialy open UI Automator Viewer.

C:\android-sdk\android-sdk\tools\bin>uiautomatorviewer

Refer screenshot



来源:https://stackoverflow.com/questions/18658322/unable-to-start-uiautomatorviewer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!