I had something like this.
ADB scans the port to see if emulators are running. I had an application using port 5555.
So enter the following command (unix / mac / linux):
lsof -i -P | grep 5555
It will provide you with the application and pid that use the port:
uHD-Netwo 320 jva 7u IPv4 0x07b77338 0t0 TCP localhost:5555 (LISTEN) uHD-Netwo 320 jva 16u IPv4 0x0861b788 0t0 TCP localhost:5555->localhost:55265 (ESTABLISHED)
Then just kill the application:
kill -9 320
The emulator should no longer be.
source share