When debugging a program with a real machine, the Eclipse console always appears with the following error "Adb connection error: The remote host forced the shutdown of an existing connection "
The problem occurs because this is caused by the DDMS call to ADB. After a search, it was discovered that this is a limitation of the ADB in the Windows environment, which can also be said to be a bug. When the number of simultaneous processes running on the phone is greater than 64 o'clock, the ADB is thrown. The deeper reason is that the maximum number of handles supported by the Windows API WaitForMultipleObjects is maximum_wait_objects, or 64.
Workaround:
1.ddms->devices->reset ADB
2. Restart Eclipse
3. Solution to the problem: http://code.google.com/p/android/issues/detail?id=12141
Download the appropriate Adb.exe file and use it to replace the Adb.exe under the Platform/tools directory of the SDK on your machine. This will solve the problem perfectly.
4. Restart the virtual appliance
or ADB kill-server
ADB start-server