无法启动该应用-"Emulator-5556 [DISCONNECTED]"不断出现和消失 [英] Cannot launch the app - "Emulator-5556 [DISCONNECTED]" keeps appearing and disappearing

查看:632
本文介绍了无法启动该应用-"Emulator-5556 [DISCONNECTED]"不断出现和消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大多数情况下,Android Studio都能正常运行,但是我似乎无法使用模拟器.

Android Studio functions correctly for the most part, but I can't seem to use the emulator.

在部署目标菜单中,名为emulator-5556 [DISCONNECTED]的仿真器大约每秒出现和消失一次.第一次打开运行菜单时,总是在adb初始化后大约10秒钟开始.

In the deployment target menu an emulator called emulator-5556 [DISCONNECTED] keeps appearing and disappearing about once a second. It always starts about 10 seconds after adb is initialized, when I open the run menu for the first time.

无论何时执行此操作,我似乎都无法在模拟器或自己的手机上运行我的应用程序.模拟器已启动,但该应用程序从未启动.我打开的每个项目都有这个问题.

Whenever it does this, I cannot seem to run my app on the emulator, or on my own phone. The emulator starts up, but the app never gets launched. I've had the issue on every project I've opened.

在运行日志中,每当出现问题并且我尝试运行该程序时,都会显示此消息:

In the run log this message appears whenever the issue is occurring and I try to run the program:

Device emulator-5556disconnected, monitoring stopped

我也对此问题进行了屏幕截图.

我发现其他一些线程正在讨论其他问题,这些问题是通过kill-serverstart-server命令修复的断开连接的仿真器的,所以我尝试了一下,尽管这确实使问题停止了一点,但它开始闪烁断开连接的仿真器重新打开运行菜单10秒后,再次在菜单中找到模拟器.

I found some other threads talking about other problems with disconnected emulators being fixed with the kill-server and start-server command, so I tried this, and while this does stop the issue for a little bit, it starts flashing the disconnected emulator again in the menu 10 seconds after I reopen the run menu.

关于如何解决此问题的任何想法?

Any ideas on how to fix this?

我尝试过:

  • 使用kill-server,然后使用start-server
  • 重新启动adb
  • 卸载Android Studio并重新安装
  • 删除SDK文件并重新安装
  • 删除gradle,然后重新安装
  • 我已经多次重启计算机
  • Restarting adb with kill-server and then start-server
  • uninstalling Android Studio and reinstalling it
  • deleting the SDK files and reinstalling them
  • deleting gradle, and reinstalling it
  • I've rebooted the computer multiple times

我认为这不太可能是与计算机有关的问题,因为我认识到其他几名笔记本电脑完全相同的人也没有遇到此问题.

I think it's unlikely to be a computer related issue since I know several other people with the exact same laptop who didn't run into this issue.

推荐答案

问题是我在笔记本电脑上安装了VideoStream,该笔记本电脑使用端口5556.卸载该应用程序解决了该问题.

The issue was that I had VideoStream installed on my laptop, which was using port 5556. Uninstalling the app fixed the problem.

这篇关于无法启动该应用-"Emulator-5556 [DISCONNECTED]"不断出现和消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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