title: Android Studio 1.4 stuck at DEVICE SHELL COMMAND: am start
body: <p>I am trying to use new NDK debugging functionality introduced in Android Studio 1.3+. However I'm stuck with this issue that occurs very often.</p>
  
  <p>Sometimes (~50% of my attempts) when I start the native debugging session, I see only this in the AS output:</p>
  
  <pre><code>Waiting for device.
  Target device: unknown-device-1f114b7
  Uploading file
      local path: /home/alexey/work_tstning/src/tst/apps/android/online_demo_native/app/build/outputs/apk/app-arm7-debug.apk
      remote path: /data/local/tmp/com.test3d.onlinedemonative
  Installing com.test3d.onlinedemonative
  DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.test3d.onlinedemonative"
      pkg: /data/local/tmp/com.test3d.onlinedemonative
  Success
  
  
  Launching application: com.test3d.onlinedemonative/com.test3d.onlinedemonative.OnlinedemonativeActivity.
  DEVICE SHELL COMMAND: am start -D -n "com.test3d.onlinedemonative/com.test3d.onlinedemonative.OnlinedemonativeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
  </code></pre>
  
  <p>After the line <code>DEVICE SHELL COMMAND: am start -D -n</code> Android Studio stucks completely and can only be killed by sending <code>-9</code> signal.
  But in other ~50% of attempts everything is fine!</p>
  
  <p>How do I fix this?</p>
  
  <p>I am working with AS 1.4 with gradle-experimental 0.3.0 on Ubuntu 14.04. Device is android-19 (KitKat) Armv7 tablet.</p>