title: Can't start Android Studio Layout Inspector: "Unexpected error: empty view hierarchy"
body: <p>Can't seem to launch Layout Inspector on Android Studio 3.0 (Canary 3)</p>
  
  <p>When connected to my device and app running, choosing Tools > Android > Layout Inspector comes up with the following error dialog:</p>
  
  <p><strong>"Error obtaining view hierarchy: Unexpected error: empty view hierarchy"</strong></p>
  
  <p><a href="https://i.stack.imgur.com/bYMC8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bYMC8.png" alt="enter image description here"></a></p>
  
  <p>Any setup I'm missing? I have Developer Options enabled on the device.</p>