最近升级到 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 …Run Code Online (Sandbox Code Playgroud)