2016-08-01 100 views
1

每當我嘗試使用Android Studio的調試功能,運行狀態會一直停留在:停留在與消息中的Android工作室「等待調試器」調試

啓動應用程序:當地沒有變化,而不是部署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: 

所以問題是我能做些什麼來使Android Studio調試工作?

+0

在Android Studio是您使用即時運行? – Shaishav

回答

2

試圖殺死調試器的同時,進程正在運行重新重視它 -

  1. 運行| Stop - > kill調試器
  2. Run |將調試器附加到android進程(菜單中的最後一個選項)|選擇你的應用程序的過程。 - >在您的應用程序處於活動狀態時,將您的調試器重新附加到您的應用程序進程中。
0

刪除可調試設備或關閉仿真器,然後重新連接或重新啓動它。它會工作。從您的命令

0

刪除-D:

$ 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