title: Error in using UIAutomatorviewer for testing Android app in Appium
body: <p>I have to automate an Android application, I am doing the same through Appium.</p>
  <p>The problem I am facing is after launching the Appium server, the app is getting installed in the emulator 4.4.2.  To inspect the element I am using <code>UIAutomatorviewer</code> which comes default with SDK. But while inspecting the element of the app, I am getting the error:</p>
  <pre><code>Error obtaining UI hierarchy
  Reason:Error while obtaining UI hierarchy XML file.com.android.ddmlb.SynchException.Remote object doesn't exist.
  </code></pre>
  <p>I tried to find the solution so that I can inspect the element so that I can script, but in vain.</p>
  <ol>
  <li>Can someone please tell how to fix the issue so that I can inspect elements?</li>
  <li>Is there any other way I can inspect element in the app apart from using <code>UIAutomator</code> viewer?</li>
  </ol>