title: Unable to connect to adb. Check if adb is installed correctly
body: <p>I have an AVD (platform version <code>4.2.2</code>) running on emulator which actually shows up if I type <code>adb devices</code> in the terminal window.</p>
  
  <p>When I try to run "Device Screenshot" in <code>uiautmatorviewer</code>, I got an error saying "Unable to connect to adb. Check if adb is installed correctly". I'm stuck trying to have <code>uiautomatorviewer</code> recognise my emulator. </p>
  
  <p>Here is the screenshot showing details of AVD if that helps:</p>
  
  <p><img src="https://i.stack.imgur.com/ucR3o.jpg" alt="AVD properties screenshot"></p>