Shifu
Shifu

Reputation: 61

Stuck at debugging with message "Waiting for Debugger" in Android studio

Whenever I try to use Android Studio's Debug function, the Run status would always stuck at:

Launching application: No local changes, not deploying APK

$ adb shell am start -D -n "com.example.nagamacmini.retrofitomdb/com.example.nagamacmini.retrofitomdb.activities.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Waiting for application to come online: com.example.nagamacmini.retrofitomdb.test | com.example.nagamacmini.retrofitomdb
Waiting for application to come online: com.example.nagamacmini.retrofitomdb.test | com.example.nagamacmini.retrofitomdb
Waiting for application to come online: com.example.nagamacmini.retrofitomdb.test | com.example.nagamacmini.retrofitomdb
Waiting for application to come online: com.example.nagamacmini.retrofitomdb.test | com.example.nagamacmini.retrofitomdb
Waiting for application to come online: com.example.nagamacmini.retrofitomdb.test | com.example.nagamacmini.retrofitomdb
Waiting for application to come online: com.example.nagamacmini.retrofitomdb.test | com.example.nagamacmini.retrofitomdb
Waiting for application to come online: com.example.nagamacmini.retrofitomdb.test | com.example.nagamacmini.retrofitomdb
Waiting for application to come online: 

So the question is what can I do to make Android Studio debugging work?

Upvotes: 4

Views: 7167

Answers (4)

Rudy Shen
Rudy Shen

Reputation: 39

Try to Restart/Reboot your Device. It's work for me.

Upvotes: 3

baha
baha

Reputation: 99

remove -D from your command:

$ adb shell am start -n "com.example.nagamacmini.retrofitomdb/com.example.nagamacmini.retrofitomdb.activities.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER

Upvotes: 0

SHA
SHA

Reputation: 57

Remove your debuggeable device or close emulator and reconnect it or relaunch it. It will work.

Upvotes: -1

Nir Duan
Nir Duan

Reputation: 6392

Try to kill the debugger an re-attach it while process is running -

  1. Run | Stop -> kill the debugger
  2. Run | Attach debugger to android process (last option in the menu) | choose your app's process. -> re-attaches your debugger to your app process while it's alive.

Upvotes: 1

Related Questions