How to attach back the Android emulator to ADB?

2019-01-10 06:24发布

After I start the emulator by hitting Debug in Eclipse, after certain time it disconnects from the ADB, but the emulator stays open. It is responsive, I can navigate and start apps.

How can I attach back the emulator to ADB, to be able to debug from Eclipse?

(the current workaround is the terminate the emulator, close Eclipse and restart both of them, which takes 10 minutes as you know the emulator needs time to start up)

EDIT 1
Check out this image:

enter image description here

EDIT 2

After I kill and restart server. One emulator process shows up in Devices tab in Eclipse. But that cannot be expanded, and I don't see sub-processes.
I can't hit debug already, as it says: Debug already running. (How to I stop the debug?)

If I managed to start the debugging of another project, It hangs out in the emulator telling me: Waiting for the debugger to attach. Nothing happens.

7条回答
Lonely孤独者°
2楼-- · 2019-01-10 07:17

There is an easier way. From eclipse you can reset the adb from DDMS panel. Here's a short video on doing that "Reset ADB on DDMS"

Here's a quick screenshot of where you can get the option.enter image description here

查看更多
登录 后发表回答