【发布时间】:2021-08-08 16:09:23
【问题描述】:
最近升级到 Android Studio 4.2.1
我可以成功启动我的应用程序,但是当我尝试附加调试器时,我在问题标题中收到错误(请参见下面的屏幕截图)。
应用卡在“等待调试器”屏幕上。
升级前一切正常。
这是调试日志的输出
$ adb shell am start -n "com.*.*/com.*.*.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.*.* | com.*.*.test
Waiting for application to come online: com.*.* | com.*.*.test
Connected to process 9869 on device 'amazon-kfmuwi-G0W0X8089256FRU1'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/ActivityThread: Application com.*.* is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
Connecting to com.*.*
Now Launching Native Debug Session
com.intellij.execution.ExecutionFinishedException: Execution finished
Process finished with exit code 0
在 logcat 我也看到了
2021-05-19 12:55:32.855 10394-10394/? E/azon.kindle.cm: Not starting debugger since process cannot load the jdwp agent.
我尝试过: 重启安卓设备 重启开发设备 使 Android Studio 失效并重启 重新安装 Android Studio
我的系统正在运行 Pop!_OS 20.10
【问题讨论】:
-
在 4.2 和 4.2.1 中发生了同样的事情
标签: android android-studio debugging adb