Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 585
andinrajesh Avatar asked Nov 26 '12 10:11

andinrajesh


People also ask

Is Uiautomatorviewer deprecated?

"uiautomatorviewer" is now replaced with "monitor" starting with android studio 2.3. I saw that uiautomatorviewer is no longer available with Android Studio 2.3.

What is Uiautomatorviewer in Appium?

The uiautomatorviewer is a standard UI tool shipped as part of Android Studio for analyzing those UI components of your Android application. Using it you can inspect the UI, find hierarchies the same way you would use Appium Inspector and view different properties/attributes of those UI elements.


1 Answers

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.

like image 176
Todd F. Avatar answered Sep 28 '22 07:09

Todd F.