无法启动应用程序 - “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-server
和 start-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
重新启动 - 卸载 Android Studio 并重新安装
- 删除 SDK 文件并重新安装
- 删除
gradle
,并重新安装 - 我已多次重新启动计算机
adb
我认为这不太可能是与计算机相关的问题,因为我认识其他几个使用完全相同笔记本电脑的人没有遇到此问题.
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.
问题是我在使用端口 5556 的笔记本电脑上安装了 VideoStream.卸载应用程序解决了问题.
The issue was that I had VideoStream installed on my laptop, which was using port 5556. Uninstalling the app fixed the problem.