Android LogCat device disconnected
Solution 1
There may be some sync problem in DDMS. Just restart the eclipse it will work fine.
Solution 2
This is a real problem in Eclipse DDMS. If you run adb logcat
at the same time that Eclipse shows "device disconnected" you will most likely still see logcat output (this is what happens in my case). Only real explanation I can see is that DDMS has a bug.
My solution? Switch to IntelliJ. It doesn't have the same problem, or any similar problems that Eclipse DDMS has connecting to devices which are recognized by adb.
Solution 3
Here is commented a solution that works for me, Clear Log:
LogCat Stops Running in Eclipse Needs Restart
Solution 4
I restarted
my device
, closed eclipse
, used a command prompt
opened at android-sdk/platform-tools
to run adb kill-server
, reopened eclipse
, and then used that same command prompt
to run adb logcat
.
My problem was then fixed, though I'm not sure which step fixed it.
Solution 5
Just Type This Command In Terminal
adb devices
u should see this log:
List of devices attached
adb server version (40) doesn't match this client (36); killing...
* daemon started successfully *
FA57NY900383 device
And Run Again, Your application starts to run on your device
chriskvik
Updated on July 09, 2022Comments
-
chriskvik almost 2 years
I'm struggling a bit with Logcat. The phone disconnects from LogCat with the message "Device Disconnected" every time I push a button changing intents in my program.
What can cause this? And Why? Could it be my code throwing a error disconnecting LogCat? Or is this a LogCat issue?
I'v tried to restart eclipse, and stop the adb.exe process with no luck.
: E/(): Device disconnected
-
Johnny_D over 10 yearsSome problem, but what porblem is it? Restarting it all the time is boring.
-
kaay almost 10 yearsUnrelated. When that happens, it shows 1 line at a time, but the line is not "device disconnected".