title: Can't attach Android Studio's debugger to Android process
body: <p>I can't attach Android Studio's debugger to my debuggable application process. Anyone else had this issue? Basically I can't get my app listed in <code>Choose Process</code> dialog. </p>
  
  <p>I'm selecting <code>Attach debugger to Android process</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/dxirc.png" alt="Attach debugger to Android process"></p>
  
  <p>And then, here's how <code>Process selection</code> dialog from Android Studio looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/USVj7.png" alt="No app is in the list to be debugged"></p>
  
  <p>Any ideas why my app is not shown in the <code>Choose Process</code> list?</p>
  
  <p>Although, <code>DDMS</code> sees my app in <code>Devices | logcat</code> list:</p>
  
  <p><img src="https://i.stack.imgur.com/EEx93.png" alt="&lt;code&gt;Devices | logcat&lt;/code&gt; list"></p>
  
  <p><code>Android Monitor</code> also sees the app in <code>Devices</code> list:</p>
  
  <p><img src="https://i.stack.imgur.com/XPAdE.png" alt="Android Monitor | Devices list"></p>
  
  <p>I've tried these actions:</p>
  
  <ul>
  <li>Restarting <code>MacBook</code> </li>
  <li>Restarting devices: tried with <code>Samsung Galaxy Note II N7100</code> (4.3) and <code>Samsung Galaxy S4</code> (4.4.2)</li>
  <li>Reenabling <code>Settings-&gt;Developer Options</code> on the devices</li>
  <li>Reenabling <code>Settings-&gt;Developer Options-&gt;USB debugging</code> on the devices</li>
  <li>Restarting <code>adb</code> by running <code>adb kill-server</code> and <code>adb start-server</code></li>
  <li>Reconnecting device from macbook and/or plugging to another USB port</li>
  <li>Launching Genymotion virtual device on macbook</li>
  <li><code>restarting in TCP mode port: 5555</code> by running <code>adb tcpip 5555</code> and then connecting to it with <code>adb connect 192.168.1.87</code></li>
  <li><code>Waiting more</code>&amp;<code>Restart</code> when got this error saying <code>ADB not responding. You can wait more, or kill "adb" process manually and click 'Restart'</code> <code>Errors in ADB:</code> <code>ddms: '$ANDROID_HOME/platform-tools/adb,start-server' failed -- run manually if necessary</code> <a href="https://i.stack.imgur.com/kWEdv.png" rel="noreferrer">Error screenshot</a></li>
  </ul>
  
  <p><strong>Update:</strong></p>
  
  <p>What I've noticed is that device appears multiple times in the <code>Android DDMS</code>-><code>Devices | logcat</code> list. If I choose 1st device from the list, it shows, there's <code>No debuggable applications</code>, but I select last device (4th in the screenshot) I see my debuggable application. See screenshots: <a href="https://i.stack.imgur.com/Syqo8.png" rel="noreferrer">1st</a> and <a href="https://i.stack.imgur.com/y5Etm.png" rel="noreferrer">4th</a>. Although, even there's only 1 device in the list and showing debuggable device and application, process still does not appear in the <code>Choose Process</code> dialog.</p>