title: Android Studio Debugger Port Error - "handshake failed - connection prematurely closed"
body: <p>When I try to attach the Android Studio Debugger to a process, I get the following error:</p>
  
  <pre><code>Error running Android Debugger (8603):
  Unable to open debugger port (localhost:8603): java.io.IOException "handshake failed - connection prematurally closed"
  </code></pre>
  
  <p>Kudos to whoever spelled prematurely that way.
  Anyway, how do I get around this problem?</p>
  
  <p>I'm using Android Studio 1.2.2 on Ubuntu. 
  <a href="https://stackoverflow.com/a/22024041/3817111">This</a> did not help.</p>