gpt4 book ai didi

react-native - 世博会不会运行应用程序错误 : could not connect to TCP port 5554: cannot connect to 127. 0.0.1:5554:

转载 作者:行者123 更新时间:2023-12-02 15:47:08 24 4
gpt4 key购买 nike

我使用的是 Windows 10 和 expo 46.0.9。我正在尝试为 expo 应用程序项目安装 android 模拟器。我安装了Android studio并在环境变量中设置了路径。当我使用 VS 代码终端运行我的应用程序时

npm run start 

在 Metro 捆绑之后,我为 Android 按了“a”。我的 AVD 移动设备出现在屏幕上,但我在终端上出现以下错误。

Error: could not connect to TCP port 5554: cannot connect to 127.0.0.1:5554: No connection could be made because the target machine actively refused it. (10061)

我观看了 youtube 教程视频。 Youtube tutorial for emulator .我在谷歌上搜索但找不到 android studio for expo 的解决方案。

当前结果 Error picture

预期结果 expected results

最佳答案

我在另一篇文章中找到了这个解决方案,试试这个(对我有用):

我刚刚遇到这个问题,并注意到这是由于 ADB 服务器挂起造成的。我的已经通过运行以下命令解决了:

adb kill-server
adb start-server

关于react-native - 世博会不会运行应用程序错误 : could not connect to TCP port 5554: cannot connect to 127. 0.0.1:5554:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73784217/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com