I have this weird problem that I have a blinking option ( appears for a second and then it's gone; and then appears again and so on) when I try to deply an app in the connected devices:
When I try to debug the app in any connected or virtual device I get this error:
01/23 18:49:36: Launching app
$ adb push D:\xxx\app\build\outputs\apk\debug\app-debug.apk /data/local/tmp/com.xxx.appname
Device emulator-5556disconnected, monitoring stopped.
Error while Installing APK
I'm not trying to deply in that ghost device. I don't know that emulator-5556 is. Tried virtual and real phones with the same error. The only thing I can do to make it "work" is doing and adb kill-server and select the device I want to debug fast. Before the emulator-5556 device starts appearing again.
The problem is after that, If I need to debug again(because I did some change of something like that) I need to kill ADB again because the emulator-5556 device is blinking again. It's really annoying.
On the device, open the Settings app, select Developer options, and then enable USB debugging (if applicable).
I executed this command:
netstat -anob
And realized another unrelated app was using port 5556:
TCP 0.0.0.0:5556 0.0.0.0:0 LISTENING 12724
[videostream-native.exe]
TCP 0.0.0.0:5557 0.0.0.0:0 LISTENING 12724
[videostream-native.exe]
Videostream is the app to stream video to chromecast. That was the culprit. Killed the process and now is not blinking anymore.
I faced same issue on Mac and couldn't find it fully addressed anywhere. This SO answer and many other I read gave me a hint.
lsof -i :<PORT>
ps -x <PID>
Close that specific app that is causing the issue. For me it was VS Code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With