相关疑难解决方法(0)

Android Studio的调试永远停留在"等待调试器"

UPDATE假设重复是被stucking在"问题等待对于调试器执行时" 运行,而这个问题是被在"stucking 等待对于调试器 "执行时调试,以产生步骤的问题是不同的,并且将溶液( s)也不同.


每当我尝试使用Android Studio的Debug函数时,Run状态将始终停留在:

Launching application: com.astrotek.parashoot.debug/com.astrotek.ptpviewer.StarterActivity.
DEVICE SHELL COMMAND: am start -n "com.astrotek.parashoot.debug/com.astrotek.ptpviewer.StarterActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.astrotek.parashoot.debug/com.astrotek.ptpviewer.StarterActivity }
Run Code Online (Sandbox Code Playgroud)

虽然我正在调试的设备(三星Galaxy S3 Android 4.3)会显示

在此输入图像描述

这是从Android Studio 0.8.8一直到1.0的情况.在同一台计算机上,我可以在同一台设备上使用Eclipse进行调试,没有任何问题.

所以问题是我可以做些什么来使Android Studio调试工作?


更新:在运行Android 5.0的Nexus 7(2013)上进行调试时会发生同样的情况.并在另一台机器上测试得到了相同的结果.我不可能是遇到这个问题的唯一一个: - /


更新:打开赏金,因为这个问题太烦人了.即使重新安装应用程序也无法解决.Nexus 5运行Cyano,Win7 64.ADB日志告诉:

8568-8568/it.myapp:myprocess W/ActivityThread? Application it.myapp is waiting for the debugger on port 8100...
8568-8568/it.myapp:myprocess I/System.out? Sending WAIT chunk
Run Code Online (Sandbox Code Playgroud)

另外,我找不到在Android Studio中断开连接或重置ADB连接的简便方法.

android android-debug android-studio

91
推荐指数
17
解决办法
6万
查看次数

如何解决"等待调试器"消息?

我使用SDK 2.2将HTC Comet连接到Eclipse.我做了一个调试版本 - 应用程序没有运行; 虽然它确实安装在设备上.在设备上,我在Comet屏幕上显示此消息框

等待调试器
应用程序HunyDew(进程com.airvine.hunydew)正在等待调试器附加.
[强制关闭]

而在Eclipse控制台中,我得到了这些消息

[2010-12-07 01:42:29 - hunydewprj] Android Launch!  
[2010-12-07 01:42:29 - hunydewprj] adb is running normally.  
[2010-12-07 01:42:29 - hunydewprj] Performing com.airvine.hunydew.HunyDewAAStartsHere activity launch  
[2010-12-07 01:42:47 - hunydewprj] Application already deployed. No need to reinstall.  
[2010-12-07 01:42:47 - hunydewprj] Starting activity com.airvine.hunydew.HunyDewAAStartsHere on device 308730C861BC  
[2010-12-07 01:42:49 - hunydewprj] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.airvine.hunydew/.HunyDewAAStartsHere }  
[2010-12-07 01:42:49 - hunydewprj] Attempting to connect debugger to 'com.airvine.hunydew' on port 8601  
[2010-12-07 01:43:09 …
Run Code Online (Sandbox Code Playgroud)

eclipse debugging android device adb

90
推荐指数
5
解决办法
13万
查看次数

为什么应用程序在未连接到计算机时等待调试器?

似乎我在Android世界中采取的每一步都遇到了问题.我很快就会在StackOverflow上提出20个问题hehe =)

通常,我通过USB将HTC Hero连接到计算机,然后以调试模式或正常模式启动应用程序.

So, the last time I ran the app in normal mode. Then I disconnect the device (I want to try to have it "free", not connected to computer) and I start the app from the menu. When I do that I get a popup saying "Application xxx is waiting for the debugger to attach" and there it stops and eventually dies.

Why is it waiting for the debugger, when the last time I ran the app …

android

74
推荐指数
4
解决办法
4万
查看次数