DDMS (Android debug monitor) doesn't list processes on Galaxy S II
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.
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.
I have tried restarting my computer, restarting the phone, turning debug mode off and on again, connecting it to开发者_如何学C another computer, checking the cable by connecting another device, all to no avail.
Any ideas?
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.
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
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)
Well, that's all I know.
For whom ever gets here, I solved the problem doing what @Fenix Voltres said above, and changed the AndroidManifest flag to android:debuggable="true".
if you have 2 instances of eclipse open this could cause the problem.
close the other instances and try again.
精彩评论