已连接设备列表中的闪烁选项不会让我调试任何应用程序 [英] Blinking option in Connected Devices list that won't let me debug any app

查看:102
本文介绍了已连接设备列表中的闪烁选项不会让我调试任何应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题,当我尝试在连接的设备中使用一个应用程序时,我有一个闪烁的选项(出现一秒钟然后消失了,然后再次出现,依此类推):

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

时出现
错误我不是在尝试使用该幽灵设备。我不知道 emulator-5556 是。试过虚拟电话和真实电话,并出现相同的错误。我要做的唯一一件事就是执行 adb kill-server ,然后选择要快速调试的设备。在 emulator-5556 设备开始再次出现之前。

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.

问题是在那之后,如果我需要再次调试(因为我做了一些更改)之类的内容)我需要再次杀死ADB,因为 emulator-5556 设备再次闪烁。

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.

推荐答案

我执行了以下命令:

netstat -anob

并意识到另一个不相关的应用正在使用端口5556:

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是将视频流传输到chromecast的应用程序。那是罪魁祸首。终止了进程,现在不再闪烁了。

Videostream is the app to stream video to chromecast. That was the culprit. Killed the process and now is not blinking anymore.

这篇关于已连接设备列表中的闪烁选项不会让我调试任何应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆