androidperformanceandroid-layoutandroid-intentandroid-uiautomator

Unable to start uiautomatorviewer


I have :

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?


Solution

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