andinrajesh andinrajesh - 2 months ago 12
Android Question

'adb not installed' error when trying to take a snapshot with uiautomatorviewer

I used the uiautomatorviewer to do UI android automation. But when i try to take snapshot to list the UI, it shows adb is not installed.

Answer

See the answer at https://plus.google.com/u/0/108487870030743970488/posts/2TrMqs1ZGQv

Basically, the com.android.uiautomator.bindir property is not set in uiautomatorviewer.bat.

Edit the file and set the property to the path for android-sdk/tools folder.