每当我尝试使用Android Studio的调试功能时,运行状态将始终停留在:
启动应用程序:没有本地更改,没有部署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 :(得分:2)
尝试杀死调试器并在进程运行时重新附加它 -
答案 1 :(得分:1)
尝试重新启动/重新启动设备。对我来说有用。
答案 2 :(得分:0)
删除可调试设备或关闭仿真器并重新连接或重新启动它。它会工作。
答案 3 :(得分: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