eclipse DDMS(Android 调试监视器)未列出 Galaxy S II 上的进程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7671406/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
DDMS (Android debug monitor) doesn't list processes on Galaxy S II
提问by Zoltán
I'm developing on a Samsung Galaxy S II using eclipse and the eclipse android plugin. This is not the first time I'm using DDMS on this computer or phone and everything used to work just fine.
我正在使用 eclipse 和 eclipse android 插件在三星 Galaxy S II 上进行开发。这不是我第一次在这台电脑或手机上使用 DDMS,过去一切都很好。
Now, when I connect the device, DDMS shows it on the device list, LogCat shows output, I can even browse the file system, but clicking on the device does not show its process list.
现在,当我连接设备时,DDMS 将其显示在设备列表中,LogCat 显示输出,我什至可以浏览文件系统,但是单击设备不会显示其进程列表。
I have tried restarting my computer, restarting the phone, turning debug mode off and on again, connecting it to another computer, checking the cable by connecting another device, all to no avail.
我尝试重新启动计算机,重新启动手机,关闭并再次打开调试模式,将其连接到另一台计算机,通过连接另一台设备检查电缆,但都无济于事。
Any ideas?
有任何想法吗?
回答by Ujjwal Singh
Only a particular app being 'debugged' will show under a physical device.
Since unlike the emulator - an actual device does not run in debug
mode.
只有正在“调试”的特定应用程序才会显示在物理设备下。
由于与模拟器不同 - 实际设备不在debug
模式下运行。
If the app you wish to debug is not listed then make sure that it is:
如果未列出您要调试的应用程序,请确保它是:
- a debug build
- running on the device
- 调试版本
- 在设备上运行
Reference: https://stackoverflow.com/a/27111467/483588
回答by Pete Houston
Settings
->Application
->Development
->USB Debug
: set ON ,Stay awake
: set ON- Replace other USB cables
- Install Samsung ADB device interface for development (Composite ADB Interface)
Settings
->Application
->Development
->USB Debug
: 设置 ON ,Stay awake
: 设置 ON- 更换其他 USB 电缆
- 安装三星ADB设备接口进行开发(Composite ADB Interface)
Well, that's all I know.
嗯,这就是我所知道的。
回答by Uriel Frankel
For whom ever gets here, I solved the problem doing what @Fenix Voltres said above, and changed the AndroidManifest flag to android:debuggable="true".
对于到达这里的人,我解决了上面@Fenix Voltres 所说的问题,并将 AndroidManifest 标志更改为 android:debuggable="true"。
回答by dvrm
if you have 2 instances of eclipse open this could cause the problem.
如果您打开了 2 个 eclipse 实例,这可能会导致问题。
close the other instances and try again.
关闭其他实例并重试。